Thursday, March 29, 2012

Max. Thread Amount of Windows XP and / or Windows Server 2003

Hi @dotnet.itags.org.ll,

I'm working on a web project which has to use multiple channels to
connect to receive several sources at once. The problem is, that I'm
not aware of the maximum amount of Threads i can allocate to my
channels.

Can i open 10 threads, 100 threads even 1000?

is there a general answer to it. my dev. environment runs on win. xp
and the application will run on a ms server 2003.

Kind regards,
Roni SchuetzYou can open as many threads as you want. It all depends on how much your
system can handle.

Shaun C McDonnell
Solutions Architect

> Hi @.ll,
> I'm working on a web project which has to use multiple channels to
> connect to receive several sources at once. The problem is, that I'm
> not aware of the maximum amount of Threads i can allocate to my
> channels.
> Can i open 10 threads, 100 threads even 1000?
> is there a general answer to it. my dev. environment runs on win. xp
> and the application will run on a ms server 2003.
> Kind regards,
> Roni Schuetz
You only need to post this question to one forum. Then sit and wait for an
answer.

--

________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Professional VSTO.NET - Wrox/Wiley 2006
-----------------

<schuetz@.gmail.com> wrote in message
news:1146442850.367681.282510@.i40g2000cwc.googlegr oups.com...
> Hi @.ll,
> I'm working on a web project which has to use multiple channels to
> connect to receive several sources at once. The problem is, that I'm
> not aware of the maximum amount of Threads i can allocate to my
> channels.
> Can i open 10 threads, 100 threads even 1000?
> is there a general answer to it. my dev. environment runs on win. xp
> and the application will run on a ms server 2003.
> Kind regards,
> Roni Schuetz

Max. number od users in SQL server

How many users can access to SQL server at the same time with web aplication
written in C# 2005? What if my database is 1GB and 1000 people access at 1
second - some simple query. My web hosting acc will be
http://www.webhost4life.com or something simmilar!Hi,
The # of concurrent connection a SQL server handles depends on the
settings of the server.
However if you plan to have a 1000 concurrent users (and 1000 open
connection at a time) you should probably
- implement caching from start in your app.
- check this with your web hosting facility.
YvesL
Goran wrote:
> How many users can access to SQL server at the same time with web aplicati
on
> written in C# 2005? What if my database is 1GB and 1000 people access at 1
> second - some simple query. My web hosting acc will be
> http://www.webhost4life.com or something simmilar!
>
I've hosted websites at WH4L for several years myself noting I have yet to
deploy any applications that really generate significant demand. However, be
it WH4L or any other hosting provider there is no known way I have ever
heard of to test the performance of a hosting provider's shared hosting
services other than deploy the application and then test and measure
performance repeatedly.
When it becomes apparent your applications are generating significant demand
for resources it is then time to move from shared hosting to your own
server. A 1GB database with 1,000 users is virtually meaningless. SQL Server
can handle just about anything you can throw at it.
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP http://wikimapia.org/#y=43038073&x=...38&z=17&l=0&m=h
"Goran" <gzelic@.gmail.com> wrote in message
news:em8spq$g9r$1@.sunce.iskon.hr...
> How many users can access to SQL server at the same time with web
> aplication written in C# 2005? What if my database is 1GB and 1000 people
> access at 1 second - some simple query. My web hosting acc will be
> http://www.webhost4life.com or something simmilar!
>

Max. number od users in SQL server

How many users can access to SQL server at the same time with web aplication
written in C# 2005? What if my database is 1GB and 1000 people access at 1
second - some simple query. My web hosting acc will be
http://www.webhost4life.com or something simmilar!Hi,
The # of concurrent connection a SQL server handles depends on the
settings of the server.

However if you plan to have a 1000 concurrent users (and 1000 open
connection at a time) you should probably
- implement caching from start in your app.
- check this with your web hosting facility.

YvesL

Goran wrote:

Quote:

Originally Posted by

How many users can access to SQL server at the same time with web aplication
written in C# 2005? What if my database is 1GB and 1000 people access at 1
second - some simple query. My web hosting acc will be
http://www.webhost4life.com or something simmilar!
>
>


I've hosted websites at WH4L for several years myself noting I have yet to
deploy any applications that really generate significant demand. However, be
it WH4L or any other hosting provider there is no known way I have ever
heard of to test the performance of a hosting provider's shared hosting
services other than deploy the application and then test and measure
performance repeatedly.

When it becomes apparent your applications are generating significant demand
for resources it is then time to move from shared hosting to your own
server. A 1GB database with 1,000 users is virtually meaningless. SQL Server
can handle just about anything you can throw at it.

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP http://wikimapia.org/#y=43038073&x=...38&z=17&l=0&m=h
"Goran" <gzelic@.gmail.comwrote in message
news:em8spq$g9r$1@.sunce.iskon.hr...

Quote:

Originally Posted by

How many users can access to SQL server at the same time with web
aplication written in C# 2005? What if my database is 1GB and 1000 people
access at 1 second - some simple query. My web hosting acc will be
http://www.webhost4life.com or something simmilar!
>

MaxConnections

I've written an HTTPHandler that implements IHttpAsyncHandler. This handler
makes a call to a webservice that will send back a byte[] to be sent back to
the webrowser as an image.
I've set the maxconnections setting on the web.config for the handler and
the webservice to:
<system.net>
<connectionManagement>
<add address="*" maxconnection="20"/>
</connectionManagement>
</system.net>
But when debugging I can see that it is still only making 2 requests at a
time. How can I make a handler that will allow for more than 2 requests at
a time.
TIASomeone correct me if I'm wrong, but there is a limit at the TCP/IP layer
that means you can only have two TCP/IP connections to the same machine on
the same port at a time. Point IE at a graphic-heavy site and you'll see it
downloads images 2 at a time. As this limit is at the TCP/IP layer you
can't control it from IIS or ASP.
"MattC" <m@.m.com> wrote in message
news:e38S7XhlHHA.3736@.TK2MSFTNGP03.phx.gbl...
> I've written an HTTPHandler that implements IHttpAsyncHandler. This
> handler makes a call to a webservice that will send back a byte[] to be
> sent back to the webrowser as an image.
> I've set the maxconnections setting on the web.config for the handler and
> the webservice to:
> <system.net>
> <connectionManagement>
> <add address="*" maxconnection="20"/>
> </connectionManagement>
> </system.net>
> But when debugging I can see that it is still only making 2 requests at a
> time. How can I make a handler that will allow for more than 2 requests
> at a time.
> TIA
>
>
>
Windows Server 2003 SP1 removed the need to set a higher limit for maxconnec
tions.
The number of simultaneous connections in W2K3 SP1 is now limited
only by available system resources or the MaxConnections registry entry.
You *can* set a higher number of connections in an unpatched Windows Server
2003:
Registry path
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControl
Set\Services\HTTP\Parameters
Registry entry
MaxConnections
Value Type
DWORD
Valid data value ranges for this entry are 0 to 4294967295.
Matt, you seem to have a typo :
<add address="*" maxconnection="20"/>
That should be :
<add address="*" maxconnections="20"/>
In any case, if you're running an unpatched W2K3, try setting the registry e
ntry, per the above.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"Aidy" <aidy@.noemail.xxxa.com> wrote in message news:tOmdnZdpgPVu2tXbnZ2dnUVZ8taknZ2d@.bt
.co
m...
> Someone correct me if I'm wrong, but there is a limit at the TCP/IP layer
that means you can only
> have two TCP/IP connections to the same machine on the same port at a time
. Point IE at a
> graphic-heavy site and you'll see it downloads images 2 at a time. As thi
s limit is at the TCP/IP
> layer you can't control it from IIS or ASP.
> "MattC" <m@.m.com> wrote in message news:e38S7XhlHHA.3736@.TK2MSFTNGP03.phx.
gbl...
Juan,
Thanks but the limit is impossed by the web browsers request queue in this
case. So IE only ever makes 2 concurrent requests and will block until each
requests returns before sending the next.
I did find that altering:
HKEY_CURRENT_USER\Software\Microsoft\Win
dows\CurrentVersion\Internet
Settings\MaxConnectionsPerServer
and setting to 20 odd really helps, but that isn't somethign I can tell
users to do :s
Also I'm using .NET2.0 so the system.net entry is maxconnection, it
complains of unknown attribute with maxconnectionS.
regards
Matt
"Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
news:eHYlTCilHHA.5048@.TK2MSFTNGP04.phx.gbl...
> Windows Server 2003 SP1 removed the need to set a higher limit for
> maxconnections.
> The number of simultaneous connections in W2K3 SP1 is now limited
> only by available system resources or the MaxConnections registry entry.
> You *can* set a higher number of connections in an unpatched Windows
> Server 2003:
> Registry path
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControl
Set\Services\HTTP\Parameters
> Registry entry
> MaxConnections
> Value Type
> DWORD
> Valid data value ranges for this entry are 0 to 4294967295.
> Matt, you seem to have a typo :
> <add address="*" maxconnection="20"/>
> That should be :
> <add address="*" maxconnections="20"/>
> In any case, if you're running an unpatched W2K3, try setting the registry
> entry, per the above.
>
>
>
> Juan T. Llibre, asp.net MVP
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en espaol : http://asp.net.do/foros/
> ======================================
> "Aidy" <aidy@.noemail.xxxa.com> wrote in message
> news:tOmdnZdpgPVu2tXbnZ2dnUVZ8taknZ2d@.bt
.com...
>
>
>
If I am undestanding correctly, you are talking about client connections,
and not server connections?
If so, this is an IE thing and can be altered only through the registry with
the Internet Settings\MaxConnectionsPerServer key.
I see Juan has jumped in as well. If it is server side, and you are using
Windows Server 2003, I would go there first.
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
****************************************
*****
Think outside the box!
****************************************
*****
"MattC" <m@.m.com> wrote in message
news:e38S7XhlHHA.3736@.TK2MSFTNGP03.phx.gbl...
> I've written an HTTPHandler that implements IHttpAsyncHandler. This
> handler makes a call to a webservice that will send back a byte[] to be
> sent back to the webrowser as an image.
> I've set the maxconnections setting on the web.config for the handler and
> the webservice to:
> <system.net>
> <connectionManagement>
> <add address="*" maxconnection="20"/>
> </connectionManagement>
> </system.net>
> But when debugging I can see that it is still only making 2 requests at a
> time. How can I make a handler that will allow for more than 2 requests
> at a time.
> TIA
>
>
>

Max. Thread Amount of Windows XP and / or Windows Server 2003

Hi @dotnet.itags.org.ll,
I'm working on a web project which has to use multiple channels to
connect to receive several sources at once. The problem is, that I'm
not aware of the maximum amount of Threads i can allocate to my
channels.
Can i open 10 threads, 100 threads even 1000?
is there a general answer to it. my dev. environment runs on win. xp
and the application will run on a ms server 2003.
Kind regards,
Roni SchuetzYou can open as many threads as you want. It all depends on how much your
system can handle.
Shaun C McDonnell
Solutions Architect

> Hi @.ll,
> I'm working on a web project which has to use multiple channels to
> connect to receive several sources at once. The problem is, that I'm
> not aware of the maximum amount of Threads i can allocate to my
> channels.
> Can i open 10 threads, 100 threads even 1000?
> is there a general answer to it. my dev. environment runs on win. xp
> and the application will run on a ms server 2003.
> Kind regards,
> Roni Schuetz
You only need to post this question to one forum. Then sit and wait for an
answer.
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Professional VSTO.NET - Wrox/Wiley 2006
----
<schuetz@.gmail.com> wrote in message
news:1146442850.367681.282510@.i40g2000cwc.googlegroups.com...
> Hi @.ll,
> I'm working on a web project which has to use multiple channels to
> connect to receive several sources at once. The problem is, that I'm
> not aware of the maximum amount of Threads i can allocate to my
> channels.
> Can i open 10 threads, 100 threads even 1000?
> is there a general answer to it. my dev. environment runs on win. xp
> and the application will run on a ms server 2003.
> Kind regards,
> Roni Schuetz
>

Maximise screen automatically

Hi,

When the user opens my homepage (the first page of the application) I'm wanting the page to automatically maximise, since at 1024x768 everything fits in nicely (all the users are at this resolution btw) but when it's not maximised it looks horrid and you have to manually maximise the window to start browsing.

Any ideas??

Cheers again,
AndrewTry to open the page with a javascript function like;

window.open("your.asp", "", 'toolbar=yes, directories=yes,location=yes, status=yes, menubar=yes, resizable=yes, scrollbars=yes, left =0, top=0, height = ' + screen.availHeight + ', width = ' + screen.availWidth);

Does it solve your issue ?
Kinda - so there's nothing in VB.NET / ASP.NET which tells the page to maximise?

If there's not then I guess I'll have to use a Javascript function.

Thanks udayakumar_jr!

Andrew

Maximising Windows

Hi,
I know this is not an ASP.NET issue, but I thought I would ask the question
of all you guys here.
I know how to mazimize a window using the javascript resizeTo( h , w )
method of the window object. However, it doesent actually maximise the
window to fill the whole screen. it stops short of that.
Does anyone know if there is a way to do this ?
CheersOn Mar 26, 5:48=A0pm, "Microsoft Newsserver" <m...@.nowhere.com> wrote:
> Hi,
> I know this is not an ASP.NET issue, but I thought I would ask the questio=[/color
]
n
> of all you guys here.
> I know how to mazimize a window using the javascript resizeTo( =A0h , w )
> method of the window object. However, it doesent actually maximise the
> window to fill the whole screen. it stops short of that.
> Does anyone know if there is a way to do this ?
> Cheers
For IE you can use window.open with the 'fullscreen' option
var newwin =3D window.open('default.aspx','','fullscreen');
Thanks.
Although that does in fact work, it makes it's not quite what I wanted as it
fills the screen rather than makes the window fit the screen. Thanks for the
help tho.
"Alexey Smirnov" <alexey.smirnov@.gmail.com> wrote in message
news:74b18f44-39aa-4024-99c5-687cb3dd9a66@.i7g2000prf.googlegroups.com...
On Mar 26, 5:48 pm, "Microsoft Newsserver" <m...@.nowhere.com> wrote:
> Hi,
> I know this is not an ASP.NET issue, but I thought I would ask the
> question
> of all you guys here.
> I know how to mazimize a window using the javascript resizeTo( h , w )
> method of the window object. However, it doesent actually maximise the
> window to fill the whole screen. it stops short of that.
> Does anyone know if there is a way to do this ?
> Cheers
For IE you can use window.open with the 'fullscreen' option
var newwin = window.open('default.aspx','','fullscreen');

Maximizing an aspx page

Anyone know how to make sure a screen is maximized everytime it is opened by
a user?

Scott1. This is not recommended for user experience.
2. If it is in your intranet, you could try to run IE in
kiosk mode.
3. Browser cannot be maximized by code. What You can do is
to get the width and height of the screen and resize the
browser to what you can to simulate the size.

Bin Song, MCP

>--Original Message--
>Anyone know how to make sure a screen is maximized
everytime it is opened by
>a user?
>Scott
>
>.
Try the following link.
http://developer.irt.org/script/212.htm

HTH,
Suresh.

>--Original Message--
>Anyone know how to make sure a screen is maximized
everytime it is opened by
>a user?
>Scott
>
>.
either that or do a window.open and pass, theatremode=yes as an argument.
Not sure if it is theatremode or channelmode. You will need to look this up.

--
Regards,
Alvin Bruney
Got DotNet? Get it here...
http://www.networkip.net/dotnet/tidbits/default.htm
"Suresh" <anonymous@.discussions.microsoft.com> wrote in message
news:02eb01c3c0f5$3cf89370$a301280a@.phx.gbl...
> Try the following link.
> http://developer.irt.org/script/212.htm
> HTH,
> Suresh.
> >--Original Message--
> >Anyone know how to make sure a screen is maximized
> everytime it is opened by
> >a user?
> >Scott
> >.

Maximizing forms in ASP.Net

Hi everyone

I need your help just want to know why my webforms doest maximize i
paste the
script on the onload event

<head runat="server">
<title>Untitled Page</title>
</head>
<body onload="javascript:
window.innerWidth = screen.width
window.innerHeight = screen.height
window.screenX = 0;
window.screenY = 0;
alwaysLowered = false;
">
<form id="form1" runat="server">
</form>
</body>
</html
Is there anyway of maximizing the web forms using Java Script? or do I place
my
code on the wrong bdy of the script ? if yes please correct my code and I
want to
know where can place the code.

Thanks and Best Regards
Mactry this in the head section

<script language="JavaScript1.2">
<!--
top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.avail Height);
}
else if (document.layers||document.getElementById) {
if
(top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//-->
</script
--
Regards

John Timney
Microsoft MVP

"mac" <markvergara007@.hotmail.com> wrote in message
news:%23orIqAZdGHA.1208@.TK2MSFTNGP02.phx.gbl...
> Hi everyone
> I need your help just want to know why my webforms doest maximize i
> paste the
> script on the onload event
>
> <head runat="server">
> <title>Untitled Page</title>
> </head>
> <body onload="javascript:
> window.innerWidth = screen.width
> window.innerHeight = screen.height
> window.screenX = 0;
> window.screenY = 0;
> alwaysLowered = false;
> ">
> <form id="form1" runat="server">
> </form>
> </body>
> </html>
>
> Is there anyway of maximizing the web forms using Java Script? or do I
> place my
> code on the wrong bdy of the script ? if yes please correct my code and I
> want to
> know where can place the code.
>
> Thanks and Best Regards
> Mac

Maximizing forms in ASP.Net

Hi everyone
I need your help just want to know why my webforms doest maximize i
paste the
script on the onload event
<head runat="server">
<title>Untitled Page</title>
</head>
<body onload="javascript:
window.innerWidth = screen.width
window.innerHeight = screen.height
window.screenX = 0;
window.screenY = 0;
alwaysLowered = false;
">
<form id="form1" runat="server">
</form>
</body>
</html>
Is there anyway of maximizing the web forms using Java Script? or do I place
my
code on the wrong bdy of the script ? if yes please correct my code and I
want to
know where can place the code.
Thanks and Best Regards
Mactry this in the head section
<script language="JavaScript1.2">
<!--
top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if
(top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.ava
ilWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//-->
</script>
Regards
John Timney
Microsoft MVP
"mac" <markvergara007@.hotmail.com> wrote in message
news:%23orIqAZdGHA.1208@.TK2MSFTNGP02.phx.gbl...
> Hi everyone
> I need your help just want to know why my webforms doest maximize i
> paste the
> script on the onload event
>
> <head runat="server">
> <title>Untitled Page</title>
> </head>
> <body onload="java script:
> window.innerWidth = screen.width
> window.innerHeight = screen.height
> window.screenX = 0;
> window.screenY = 0;
> alwaysLowered = false;
> ">
> <form id="form1" runat="server">
> </form>
> </body>
> </html>
>
> Is there anyway of maximizing the web forms using Java Script? or do I
> place my
> code on the wrong bdy of the script ? if yes please correct my code and I
> want to
> know where can place the code.
>
> Thanks and Best Regards
> Mac
>

Maximizing Web Page

Hi,

I'm developing a VB ASP.NET application. I like to know
if there is a way to programmatically maximize my default
page (first page) rather than letting it defaults to the
setting the last time IE was in. Any suggestion is
greatly appreciated.

Thanks.

Charles.You might want to investigate the channelmode feature. It specifies whether to
display the IE window in theatre mode.

http://msdn.microsoft.com/library/d...hods/open_0.asp

Then again, it could be really annoying.

Ken

"Charles" <charles_chao@.ahm.honda.com> wrote in message
news:091301c35dfb$f5da3a40$a001280a@.phx.gbl...
Hi,

I'm developing a VB ASP.NET application. I like to know
if there is a way to programmatically maximize my default
page (first page) rather than letting it defaults to the
setting the last time IE was in. Any suggestion is
greatly appreciated.

Thanks.

Charles.

maximum cell length in excel 2000

What is the maximum cell length in Excel 2000? I am writing a large
text field to Excel and it seems to break it up into different cells
after about 400 characters and then breaks everything beyond that into a
separate cell for each sentence.

*** Sent via Developersdex http://www.developersdex.com ***Hi,

Mike P wrote:

Quote:

Originally Posted by

What is the maximum cell length in Excel 2000? I am writing a large
text field to Excel and it seems to break it up into different cells
after about 400 characters and then breaks everything beyond that into a
separate cell for each sentence.


You should ask this in an Excel newsgroup. This is ASP.NET here ;-)

Greetings,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch

maximum cell length in excel 2000

What is the maximum cell length in Excel 2000? I am writing a large
text field to Excel and it seems to break it up into different cells
after about 400 characters and then breaks everything beyond that into a
separate cell for each sentence.
*** Sent via Developersdex http://www.examnotes.net ***Hi,
Mike P wrote:
> What is the maximum cell length in Excel 2000? I am writing a large
> text field to Excel and it seems to break it up into different cells
> after about 400 characters and then breaks everything beyond that into a
> separate cell for each sentence.
You should ask this in an Excel newsgroup. This is ASP.NET here ;-)
Greetings,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch

Maximum connections to http server

By default, the machine.config contains following information:

<system.net>
......
<connectionManagement>
<add address="*" maxconnection="2"/>
</connectionManagement>
</system.net
This limits the number of connections to web server to 2. For example, if
you want to write code to post xml to a web server using HttpWebRequest
object, the call to GetResponse() will be blocked except for first 2
threads. All other threads will enter GetResponse method as previous threads
are done.

Tthe msdn documentation says that if you want increase this number for any
http server, you need to modify this configuration in either machine.config
or app confic or policy config file as below:

<system.net>
......
<connectionManagement>
<add address="www.abc.com" maxconnection="15"/>
</connectionManagement>
</system.net
I have a web application that is deployed on internal web server. So I
modified it as following:

<system.net>
......
<connectionManagement>
<add address="mymachine" maxconnection="15"/>
</connectionManagement>
</system.net
This did not work at all. I also tried the machine in active directory
network name mymachine.ab.cde. It did not work either.

But when I modified as below, it worked:

<system.net>
......
<connectionManagement>
<add address="*" maxconnection="15"/>
</connectionManagement>
</system.net
But I do not want to apply this for every server. So can someone tell what
am I doing wrong?

Thanks.
Raghu/..Hi Raghu,

Have you tried using the IP address instead of name?

--
Ray Dixon - Microsoft MVP
ray@.NOSPAM.greeble.com
(remove NOSPAM. from my e-mail address for a direct reply)

"Raghu Rudra" <Raghu.Rudra@.qcsi.com> wrote in message
news:%23I4fkvKUDHA.1688@.TK2MSFTNGP11.phx.gbl...
> By default, the machine.config contains following information:
> <system.net>
> ......
> <connectionManagement>
> <add address="*" maxconnection="2"/>
> </connectionManagement>
> </system.net>
> This limits the number of connections to web server to 2. For example, if
> you want to write code to post xml to a web server using HttpWebRequest
> object, the call to GetResponse() will be blocked except for first 2
> threads. All other threads will enter GetResponse method as previous
threads
> are done.
> Tthe msdn documentation says that if you want increase this number for any
> http server, you need to modify this configuration in either
machine.config
> or app confic or policy config file as below:
> <system.net>
> ......
> <connectionManagement>
> <add address="www.abc.com" maxconnection="15"/>
> </connectionManagement>
> </system.net>
> I have a web application that is deployed on internal web server. So I
> modified it as following:
> <system.net>
> ......
> <connectionManagement>
> <add address="mymachine" maxconnection="15"/>
> </connectionManagement>
> </system.net>
> This did not work at all. I also tried the machine in active directory
> network name mymachine.ab.cde. It did not work either.
> But when I modified as below, it worked:
> <system.net>
> ......
> <connectionManagement>
> <add address="*" maxconnection="15"/>
> </connectionManagement>
> </system.net>
> But I do not want to apply this for every server. So can someone tell what
> am I doing wrong?
> Thanks.
> Raghu/..
I did not the first time. Now I did. It is still not working the it is
supposed to.

"Ray Dixon [MVP]" <ray@.NOSPAM.greeble.com> wrote in message
news:e39AdMUUDHA.612@.TK2MSFTNGP12.phx.gbl...
> Hi Raghu,
> Have you tried using the IP address instead of name?
>
> --
> Ray Dixon - Microsoft MVP
> ray@.NOSPAM.greeble.com
> (remove NOSPAM. from my e-mail address for a direct reply)
>
> "Raghu Rudra" <Raghu.Rudra@.qcsi.com> wrote in message
> news:%23I4fkvKUDHA.1688@.TK2MSFTNGP11.phx.gbl...
> > By default, the machine.config contains following information:
> > <system.net>
> > ......
> > <connectionManagement>
> > <add address="*" maxconnection="2"/>
> > </connectionManagement>
> > </system.net>
> > This limits the number of connections to web server to 2. For example,
if
> > you want to write code to post xml to a web server using HttpWebRequest
> > object, the call to GetResponse() will be blocked except for first 2
> > threads. All other threads will enter GetResponse method as previous
> threads
> > are done.
> > Tthe msdn documentation says that if you want increase this number for
any
> > http server, you need to modify this configuration in either
> machine.config
> > or app confic or policy config file as below:
> > <system.net>
> > ......
> > <connectionManagement>
> > <add address="www.abc.com" maxconnection="15"/>
> > </connectionManagement>
> > </system.net>
> > I have a web application that is deployed on internal web server. So I
> > modified it as following:
> > <system.net>
> > ......
> > <connectionManagement>
> > <add address="mymachine" maxconnection="15"/>
> > </connectionManagement>
> > </system.net>
> > This did not work at all. I also tried the machine in active directory
> > network name mymachine.ab.cde. It did not work either.
> > But when I modified as below, it worked:
> > <system.net>
> > ......
> > <connectionManagement>
> > <add address="*" maxconnection="15"/>
> > </connectionManagement>
> > </system.net>
> > But I do not want to apply this for every server. So can someone tell
what
> > am I doing wrong?
> > Thanks.
> > Raghu/..
It depends on what your platform is.
Windows XP and Windows 2000 professional have a hard coded limited of
10 "simultaneous" connections because they are not "Server" OS's. This
is usually sufficient for development purposes but not for production
servers and/ or load testing.
I "think" that the setting you are referring to in machine.config
refers to the number of connections per request. Like when you hit a
webpage and it begins downloading images for that page.. it can use up
to two connections by default to download these to the client. Someone
can correct me if I'm wrong.

Darren Mombourquette

"Raghu Rudra" <Raghu.Rudra@.qcsi.com> wrote in message news:<u8s2DzUUDHA.2196@.TK2MSFTNGP12.phx.gbl>...
> I did not the first time. Now I did. It is still not working the it is
> supposed to.
> "Ray Dixon [MVP]" <ray@.NOSPAM.greeble.com> wrote in message
> news:e39AdMUUDHA.612@.TK2MSFTNGP12.phx.gbl...
> > Hi Raghu,
> > Have you tried using the IP address instead of name?
> > --
> > Ray Dixon - Microsoft MVP
> > ray@.NOSPAM.greeble.com
> > (remove NOSPAM. from my e-mail address for a direct reply)
> > "Raghu Rudra" <Raghu.Rudra@.qcsi.com> wrote in message
> > news:%23I4fkvKUDHA.1688@.TK2MSFTNGP11.phx.gbl...
> > > By default, the machine.config contains following information:
> > > > <system.net>
> > > ......
> > > <connectionManagement>
> > > <add address="*" maxconnection="2"/>
> > > </connectionManagement>
> > > </system.net>
> > > > This limits the number of connections to web server to 2. For example,
> if
> > > you want to write code to post xml to a web server using HttpWebRequest
> > > object, the call to GetResponse() will be blocked except for first 2
> > > threads. All other threads will enter GetResponse method as previous
> threads
> > > are done.
> > > > Tthe msdn documentation says that if you want increase this number for
> any
> > > http server, you need to modify this configuration in either
> machine.config
> > > or app confic or policy config file as below:
> > > > <system.net>
> > > ......
> > > <connectionManagement>
> > > <add address="www.abc.com" maxconnection="15"/>
> > > </connectionManagement>
> > > </system.net>
> > > > I have a web application that is deployed on internal web server. So I
> > > modified it as following:
> > > > <system.net>
> > > ......
> > > <connectionManagement>
> > > <add address="mymachine" maxconnection="15"/>
> > > </connectionManagement>
> > > </system.net>
> > > > This did not work at all. I also tried the machine in active directory
> > > network name mymachine.ab.cde. It did not work either.
> > > > But when I modified as below, it worked:
> > > > <system.net>
> > > ......
> > > <connectionManagement>
> > > <add address="*" maxconnection="15"/>
> > > </connectionManagement>
> > > </system.net>
> > > > But I do not want to apply this for every server. So can someone tell
> what
> > > am I doing wrong?
> > > > Thanks.
> > > Raghu/..
> >

maximum concurent user allowed

What is the maximum connection able to support in ASP.NET application? Can it support up to 25,000 concurrent user? I have an experience where aspnet_wp cannot hold too many recources and need to be reset.

ASP.NET will support as many as you give it. However, you need to be on Windows Server 2000 or 2003, which has no limit on the number of concurrent requests unless you specify it to. However, with that many concurrent requests, a load balancer or web garden might not be a bad idea. Otherwise, the worker process might get overwhelmed.


Thanks Kevin.

Do you have any recommendation on the hardware and software in order to achieve that?

thanks


It would all depend on your application I would think and your milage could vary.

If you are interested in how many concurrent users an ASP.NET site can handle on a per server basis realize that MySpace.com is a .NET application running on like 125 servers. See the Mix 06 Keynote for some details on it.http://sessions.visitmix.com/

Alsowww.plentyoffish.com runs off 4 servers, 1 web, 1 image, 1 mail and 1 database server.http://media.webmasterradio.fm/episodes/audio/2006/NI062706.mp3 is a podcast where he talks about the site and mentions the architecture.

Maximum Characters per Website

Hello Friends,
I'm currently sitting here and don't know how to fix this problem. I've
written a webapplication where you can fill out several forms. For each form
I have created a website where you can fill out this form. Some of these
formulars are dynamic, so I have inserted a table, which can be expanded by
clicking a button.
Now my problem comes. If I have added some tablerows I can insert the text
but if I click the save button, which calls a procedure, nothings happens.
Now I found out that this has something to do with the amount of Characters
in all the textboxes. If I open the website I can save it, but if I add one
character I can't anymore. And now the funny thing :-) I choose some textbox
of the website an delete a character I can save again, but I can only add as
many characters as I delete.
So there must be a limitation in maximum characters per website. The thing I
have already tried is to limit the textboxes mit maxlength, but that doesn't
really helped me much.
Is there limitation in characters and how can I size this one up?
Greetings from Germany
Christian
Christian Grbner
MVP ISA Server
Hilfe & Infos rund um den ISA Server: http://www.msisafaq.de
Das ISA 2004 Handbuch - http://www.msisafaq.de/buch/Checkout the maxRequestLength property of the Runtime attribute in the
Config File. You can check out
http://weblogs.asp.net/skoganti/arc...2/22/78124.aspx for a sample.
The QueryString has a Max Limit though, which is different from the body.
Regards,
Trevor Benedict R
MCSD
"Christian Grbner [MVP]" <newsgroups@.groeby.net> wrote in message
news:uBjcLLOLGHA.516@.TK2MSFTNGP15.phx.gbl...
> Hello Friends,
> I'm currently sitting here and don't know how to fix this problem. I've
> written a webapplication where you can fill out several forms. For each
> form I have created a website where you can fill out this form. Some of
> these formulars are dynamic, so I have inserted a table, which can be
> expanded by clicking a button.
> Now my problem comes. If I have added some tablerows I can insert the text
> but if I click the save button, which calls a procedure, nothings happens.
> Now I found out that this has something to do with the amount of
> Characters in all the textboxes. If I open the website I can save it, but
> if I add one character I can't anymore. And now the funny thing :-) I
> choose some textbox of the website an delete a character I can save again,
> but I can only add as many characters as I delete.
> So there must be a limitation in maximum characters per website. The thing
> I have already tried is to limit the textboxes mit maxlength, but that
> doesn't really helped me much.
> Is there limitation in characters and how can I size this one up?
> Greetings from Germany
> Christian
> --
> Christian Grbner
> MVP ISA Server
> Hilfe & Infos rund um den ISA Server: http://www.msisafaq.de
> Das ISA 2004 Handbuch - http://www.msisafaq.de/buch/
>
Hi,
thanks for your advice, but I have configured my web.config like in that
article, but I didn't gave me any advantages.
Any more suggestions?
Greetrings from Germany
Christian
Christian Grbner
MVP ISA Server
Hilfe & Infos rund um den ISA Server: http://www.msisafaq.de
Das ISA 2004 Handbuch - http://www.msisafaq.de/buch/
"Trevor Benedict R" <trevornews@.yahoo.com> schrieb im Newsbeitrag
news:OVLTPwOLGHA.2912@.tk2msftngp13.phx.gbl...
> Checkout the maxRequestLength property of the Runtime attribute in the
> Config File. You can check out
> http://weblogs.asp.net/skoganti/arc...2/22/78124.aspx for a
> sample.
> The QueryString has a Max Limit though, which is different from the body.
> Regards,
> Trevor Benedict R
> MCSD
>
> "Christian Grbner [MVP]" <newsgroups@.groeby.net> wrote in message
> news:uBjcLLOLGHA.516@.TK2MSFTNGP15.phx.gbl...
>
Maybe it has something to do with viewstate?
"Christian Gr?bner [MVP]" wrote:

> Hi,
> thanks for your advice, but I have configured my web.config like in that
> article, but I didn't gave me any advantages.
> Any more suggestions?
> Greetrings from Germany
> Christian
> --
> Christian Gr?bner
> MVP ISA Server
> Hilfe & Infos rund um den ISA Server: http://www.msisafaq.de
> Das ISA 2004 Handbuch - http://www.msisafaq.de/buch/
> "Trevor Benedict R" <trevornews@.yahoo.com> schrieb im Newsbeitrag
> news:OVLTPwOLGHA.2912@.tk2msftngp13.phx.gbl...
>
>
1. Do you have a Try..Catch Block and if so what are you doing with the
Error.
2. When you say that you are not able to save, does the Form Postback while
not saving the new changes.
3. Are you using the HTML INPUT type or the TEXTAREA tag. Could you confirm
this with the ViewState
4. Do you have any Client Side code that validates the data that could
possibly return a False before the postback.
5. What browser are you using to test it.
6. What version of ASP.NET
7. Do you have any other application that are working fine on the same
server.
8. Is there anything in the Eventlog
9. What about the IIS Log file. Do you see a postback happening.
Regards,
Trevor Benedict R
"Christian Grbner [MVP]" <newsgroups@.groeby.net> wrote in message
news:ujSTZ6OLGHA.3876@.TK2MSFTNGP11.phx.gbl...
> Hi,
> thanks for your advice, but I have configured my web.config like in that
> article, but I didn't gave me any advantages.
> Any more suggestions?
> Greetrings from Germany
> Christian
> --
> Christian Grbner
> MVP ISA Server
> Hilfe & Infos rund um den ISA Server: http://www.msisafaq.de
> Das ISA 2004 Handbuch - http://www.msisafaq.de/buch/
> "Trevor Benedict R" <trevornews@.yahoo.com> schrieb im Newsbeitrag
> news:OVLTPwOLGHA.2912@.tk2msftngp13.phx.gbl...
>
Are you using Smart Navigation. If you have it enabled, then I would ask you
to disable Smart Navigation and then try to do a ViewSource and study the
client side code that you have and let us know if you see anything funny. I
created a test page with text box and pasted as much data as possible, but
the page errored out during postback. In your case you don't even have a
postback. I would suspect that it is definitely a client side issue Some
code would be very useful.
Regards,
Trevor Benedict R
"Christian Grbner [MVP]" <newsgroups@.groeby.net> wrote in message
news:eFMRAsPLGHA.3424@.TK2MSFTNGP12.phx.gbl...
> Hello,
> thanks for your help :-)
>
> Sure all my code is in Try..Catch Blocks. So if there would be an error I
> would have seen it.
>
> No, there is no postback. If everything works fine there is one.
>
> No I use <asp:textbox>. I haven't tried to disable the viewstate becaus I
> need the viewstate.
>
> No.
>
> IE 6
>
> Sure round about 10 ohter websites
>
> Nothing to be mentioned.
>
> Haven't looked at it now.
> Greetings from Germany
> Christian
> --
> Christian Grbner
> [MVP ISA Server]
> Alle Informationen zum ISA Server unter http://www.msisafaq.de
>
Hello,
thanks for your help :-)

> 1. Do you have a Try..Catch Block and if so what are you doing with the
> Error.
Sure all my code is in Try..Catch Blocks. So if there would be an error I
would have seen it.

> 2. When you say that you are not able to save, does the Form Postback
> while not saving the new changes.
No, there is no postback. If everything works fine there is one.

> 3. Are you using the HTML INPUT type or the TEXTAREA tag. Could you
> confirm this with the ViewState
No I use <asp:textbox>. I haven't tried to disable the viewstate becaus I
need the viewstate.

> 4. Do you have any Client Side code that validates the data that could
> possibly return a False before the postback.
No.

> 5. What browser are you using to test it.
IE 6

> 7. Do you have any other application that are working fine on the same
> server.
Sure round about 10 ohter websites

> 8. Is there anything in the Eventlog
Nothing to be mentioned.

> 9. What about the IIS Log file. Do you see a postback happening.
Haven't looked at it now.
Greetings from Germany
Christian
Christian Grbner
[MVP ISA Server]
Alle Informationen zum ISA Server unter http://www.msisafaq.de

Maximum Characters per Website

Hello Friends,

I'm currently sitting here and don't know how to fix this problem. I've
written a webapplication where you can fill out several forms. For each form
I have created a website where you can fill out this form. Some of these
formulars are dynamic, so I have inserted a table, which can be expanded by
clicking a button.

Now my problem comes. If I have added some tablerows I can insert the text
but if I click the save button, which calls a procedure, nothings happens.
Now I found out that this has something to do with the amount of Characters
in all the textboxes. If I open the website I can save it, but if I add one
character I can't anymore. And now the funny thing :-) I choose some textbox
of the website an delete a character I can save again, but I can only add as
many characters as I delete.

So there must be a limitation in maximum characters per website. The thing I
have already tried is to limit the textboxes mit maxlength, but that doesn't
really helped me much.

Is there limitation in characters and how can I size this one up?

Greetings from Germany

Christian

--
Christian Grbner
MVP ISA Server
Hilfe & Infos rund um den ISA Server: http://www.msisafaq.de

Das ISA 2004 Handbuch - http://www.msisafaq.de/buch/Checkout the maxRequestLength property of the Runtime attribute in the
Config File. You can check out
http://weblogs.asp.net/skoganti/arc...2/22/78124.aspx for a sample.

The QueryString has a Max Limit though, which is different from the body.

Regards,

Trevor Benedict R
MCSD

"Christian Grbner [MVP]" <newsgroups@.groeby.net> wrote in message
news:uBjcLLOLGHA.516@.TK2MSFTNGP15.phx.gbl...
> Hello Friends,
> I'm currently sitting here and don't know how to fix this problem. I've
> written a webapplication where you can fill out several forms. For each
> form I have created a website where you can fill out this form. Some of
> these formulars are dynamic, so I have inserted a table, which can be
> expanded by clicking a button.
> Now my problem comes. If I have added some tablerows I can insert the text
> but if I click the save button, which calls a procedure, nothings happens.
> Now I found out that this has something to do with the amount of
> Characters in all the textboxes. If I open the website I can save it, but
> if I add one character I can't anymore. And now the funny thing :-) I
> choose some textbox of the website an delete a character I can save again,
> but I can only add as many characters as I delete.
> So there must be a limitation in maximum characters per website. The thing
> I have already tried is to limit the textboxes mit maxlength, but that
> doesn't really helped me much.
> Is there limitation in characters and how can I size this one up?
> Greetings from Germany
> Christian
> --
> Christian Grbner
> MVP ISA Server
> Hilfe & Infos rund um den ISA Server: http://www.msisafaq.de
> Das ISA 2004 Handbuch - http://www.msisafaq.de/buch/
Hi,

thanks for your advice, but I have configured my web.config like in that
article, but I didn't gave me any advantages.

Any more suggestions?

Greetrings from Germany

Christian

--
Christian Grbner
MVP ISA Server
Hilfe & Infos rund um den ISA Server: http://www.msisafaq.de

Das ISA 2004 Handbuch - http://www.msisafaq.de/buch/

"Trevor Benedict R" <trevornews@.yahoo.com> schrieb im Newsbeitrag
news:OVLTPwOLGHA.2912@.tk2msftngp13.phx.gbl...
> Checkout the maxRequestLength property of the Runtime attribute in the
> Config File. You can check out
> http://weblogs.asp.net/skoganti/arc...2/22/78124.aspx for a
> sample.
> The QueryString has a Max Limit though, which is different from the body.
> Regards,
> Trevor Benedict R
> MCSD
>
> "Christian Grbner [MVP]" <newsgroups@.groeby.net> wrote in message
> news:uBjcLLOLGHA.516@.TK2MSFTNGP15.phx.gbl...
>> Hello Friends,
>>
>> I'm currently sitting here and don't know how to fix this problem. I've
>> written a webapplication where you can fill out several forms. For each
>> form I have created a website where you can fill out this form. Some of
>> these formulars are dynamic, so I have inserted a table, which can be
>> expanded by clicking a button.
>>
>> Now my problem comes. If I have added some tablerows I can insert the
>> text but if I click the save button, which calls a procedure, nothings
>> happens. Now I found out that this has something to do with the amount of
>> Characters in all the textboxes. If I open the website I can save it, but
>> if I add one character I can't anymore. And now the funny thing :-) I
>> choose some textbox of the website an delete a character I can save
>> again, but I can only add as many characters as I delete.
>>
>> So there must be a limitation in maximum characters per website. The
>> thing I have already tried is to limit the textboxes mit maxlength, but
>> that doesn't really helped me much.
>>
>> Is there limitation in characters and how can I size this one up?
>>
>> Greetings from Germany
>>
>> Christian
>>
>> --
>> Christian Grbner
>> MVP ISA Server
>> Hilfe & Infos rund um den ISA Server: http://www.msisafaq.de
>>
>> Das ISA 2004 Handbuch - http://www.msisafaq.de/buch/
>>
>>
Maybe it has something to do with viewstate?

"Christian Gr?bner [MVP]" wrote:

> Hi,
> thanks for your advice, but I have configured my web.config like in that
> article, but I didn't gave me any advantages.
> Any more suggestions?
> Greetrings from Germany
> Christian
> --
> Christian Gr?bner
> MVP ISA Server
> Hilfe & Infos rund um den ISA Server: http://www.msisafaq.de
> Das ISA 2004 Handbuch - http://www.msisafaq.de/buch/
> "Trevor Benedict R" <trevornews@.yahoo.com> schrieb im Newsbeitrag
> news:OVLTPwOLGHA.2912@.tk2msftngp13.phx.gbl...
> > Checkout the maxRequestLength property of the Runtime attribute in the
> > Config File. You can check out
> > http://weblogs.asp.net/skoganti/arc...2/22/78124.aspx for a
> > sample.
> > The QueryString has a Max Limit though, which is different from the body.
> > Regards,
> > Trevor Benedict R
> > MCSD
> > "Christian Gr?bner [MVP]" <newsgroups@.groeby.net> wrote in message
> > news:uBjcLLOLGHA.516@.TK2MSFTNGP15.phx.gbl...
> >> Hello Friends,
> >>
> >> I'm currently sitting here and don't know how to fix this problem. I've
> >> written a webapplication where you can fill out several forms. For each
> >> form I have created a website where you can fill out this form. Some of
> >> these formulars are dynamic, so I have inserted a table, which can be
> >> expanded by clicking a button.
> >>
> >> Now my problem comes. If I have added some tablerows I can insert the
> >> text but if I click the save button, which calls a procedure, nothings
> >> happens. Now I found out that this has something to do with the amount of
> >> Characters in all the textboxes. If I open the website I can save it, but
> >> if I add one character I can't anymore. And now the funny thing :-) I
> >> choose some textbox of the website an delete a character I can save
> >> again, but I can only add as many characters as I delete.
> >>
> >> So there must be a limitation in maximum characters per website. The
> >> thing I have already tried is to limit the textboxes mit maxlength, but
> >> that doesn't really helped me much.
> >>
> >> Is there limitation in characters and how can I size this one up?
> >>
> >> Greetings from Germany
> >>
> >> Christian
> >>
> >> --
> >> Christian Gr?bner
> >> MVP ISA Server
> >> Hilfe & Infos rund um den ISA Server: http://www.msisafaq.de
> >>
> >> Das ISA 2004 Handbuch - http://www.msisafaq.de/buch/
> >>
> >>
>
1. Do you have a Try..Catch Block and if so what are you doing with the
Error.
2. When you say that you are not able to save, does the Form Postback while
not saving the new changes.
3. Are you using the HTML INPUT type or the TEXTAREA tag. Could you confirm
this with the ViewState
4. Do you have any Client Side code that validates the data that could
possibly return a False before the postback.
5. What browser are you using to test it.
6. What version of ASP.NET
7. Do you have any other application that are working fine on the same
server.
8. Is there anything in the Eventlog
9. What about the IIS Log file. Do you see a postback happening.

Regards,

Trevor Benedict R

"Christian Grbner [MVP]" <newsgroups@.groeby.net> wrote in message
news:ujSTZ6OLGHA.3876@.TK2MSFTNGP11.phx.gbl...
> Hi,
> thanks for your advice, but I have configured my web.config like in that
> article, but I didn't gave me any advantages.
> Any more suggestions?
> Greetrings from Germany
> Christian
> --
> Christian Grbner
> MVP ISA Server
> Hilfe & Infos rund um den ISA Server: http://www.msisafaq.de
> Das ISA 2004 Handbuch - http://www.msisafaq.de/buch/
> "Trevor Benedict R" <trevornews@.yahoo.com> schrieb im Newsbeitrag
> news:OVLTPwOLGHA.2912@.tk2msftngp13.phx.gbl...
>> Checkout the maxRequestLength property of the Runtime attribute in the
>> Config File. You can check out
>> http://weblogs.asp.net/skoganti/arc...2/22/78124.aspx for a
>> sample.
>>
>> The QueryString has a Max Limit though, which is different from the body.
>>
>> Regards,
>>
>> Trevor Benedict R
>> MCSD
>>
>>
>> "Christian Grbner [MVP]" <newsgroups@.groeby.net> wrote in message
>> news:uBjcLLOLGHA.516@.TK2MSFTNGP15.phx.gbl...
>>> Hello Friends,
>>>
>>> I'm currently sitting here and don't know how to fix this problem. I've
>>> written a webapplication where you can fill out several forms. For each
>>> form I have created a website where you can fill out this form. Some of
>>> these formulars are dynamic, so I have inserted a table, which can be
>>> expanded by clicking a button.
>>>
>>> Now my problem comes. If I have added some tablerows I can insert the
>>> text but if I click the save button, which calls a procedure, nothings
>>> happens. Now I found out that this has something to do with the amount
>>> of Characters in all the textboxes. If I open the website I can save it,
>>> but if I add one character I can't anymore. And now the funny thing :-)
>>> I choose some textbox of the website an delete a character I can save
>>> again, but I can only add as many characters as I delete.
>>>
>>> So there must be a limitation in maximum characters per website. The
>>> thing I have already tried is to limit the textboxes mit maxlength, but
>>> that doesn't really helped me much.
>>>
>>> Is there limitation in characters and how can I size this one up?
>>>
>>> Greetings from Germany
>>>
>>> Christian
>>>
>>> --
>>> Christian Grbner
>>> MVP ISA Server
>>> Hilfe & Infos rund um den ISA Server: http://www.msisafaq.de
>>>
>>> Das ISA 2004 Handbuch - http://www.msisafaq.de/buch/
>>>
>>>
>>
>>
Hello,

thanks for your help :-)

> 1. Do you have a Try..Catch Block and if so what are you doing with the
> Error.

Sure all my code is in Try..Catch Blocks. So if there would be an error I
would have seen it.

> 2. When you say that you are not able to save, does the Form Postback
> while not saving the new changes.

No, there is no postback. If everything works fine there is one.

> 3. Are you using the HTML INPUT type or the TEXTAREA tag. Could you
> confirm this with the ViewState

No I use <asp:textbox>. I haven't tried to disable the viewstate becaus I
need the viewstate.

> 4. Do you have any Client Side code that validates the data that could
> possibly return a False before the postback.

No.

> 5. What browser are you using to test it.

IE 6

> 7. Do you have any other application that are working fine on the same
> server.

Sure round about 10 ohter websites

> 8. Is there anything in the Eventlog
Nothing to be mentioned.

> 9. What about the IIS Log file. Do you see a postback happening.

Haven't looked at it now.

Greetings from Germany

Christian

--
Christian Grbner
[MVP ISA Server]
Alle Informationen zum ISA Server unter http://www.msisafaq.de
Are you using Smart Navigation. If you have it enabled, then I would ask you
to disable Smart Navigation and then try to do a ViewSource and study the
client side code that you have and let us know if you see anything funny. I
created a test page with text box and pasted as much data as possible, but
the page errored out during postback. In your case you don't even have a
postback. I would suspect that it is definitely a client side issue Some
code would be very useful.

Regards,

Trevor Benedict R

"Christian Grbner [MVP]" <newsgroups@.groeby.net> wrote in message
news:eFMRAsPLGHA.3424@.TK2MSFTNGP12.phx.gbl...
> Hello,
> thanks for your help :-)
>> 1. Do you have a Try..Catch Block and if so what are you doing with the
>> Error.
> Sure all my code is in Try..Catch Blocks. So if there would be an error I
> would have seen it.
>> 2. When you say that you are not able to save, does the Form Postback
>> while not saving the new changes.
> No, there is no postback. If everything works fine there is one.
>> 3. Are you using the HTML INPUT type or the TEXTAREA tag. Could you
>> confirm this with the ViewState
> No I use <asp:textbox>. I haven't tried to disable the viewstate becaus I
> need the viewstate.
>> 4. Do you have any Client Side code that validates the data that could
>> possibly return a False before the postback.
> No.
>> 5. What browser are you using to test it.
> IE 6
>> 7. Do you have any other application that are working fine on the same
>> server.
> Sure round about 10 ohter websites
>> 8. Is there anything in the Eventlog
> Nothing to be mentioned.
>> 9. What about the IIS Log file. Do you see a postback happening.
> Haven't looked at it now.
> Greetings from Germany
> Christian
> --
> Christian Grbner
> [MVP ISA Server]
> Alle Informationen zum ISA Server unter http://www.msisafaq.de

maximum DataTable can contains by DataSet

Hi..All

Please, Give me answers of this question :

How many maximum DataTable can contains by DataSet ??

what is maximum limit?

Thanks in Advance.

The maximum will be the limit of your machines memory, or 2 billion, whichever gets reached first.

http://codebetter.com/blogs/sahil.malik/archive/2005/03/19/60093.aspx


Hi,

Thanks for replying.

maximum datagrid row count?

hello everyone,

one of my developers is working with a DataGrid component, which uses a
DataTable as its DataSource.

the DataTable is populated by a method which calls a stored procedure
through an SqlCommand object, which accepts two input parameters which
affect the query range.

the problem she's experiencing is that with all input parameter values,
the DataTable is built correctly, and has data in it (this can be
verified through runtime debugging inspection - but also through
manually running the stored procedures with all the possible input
parameter values - they all return greater than zero rows). however,
when the input parameters are least restrictive (meaning the largest
range of rows returned) - even though the DataTable has information in
it, the DataBind operation seems to have no effect whatsoever. after
the DataBind, the DataGrid displays no data.

the only thing we can think of is if the DataGrid has a limitation of
the number of rows it can display? or perhaps just a raw amount of data
that can be bound to it? that seems unlikely though, since the number
of rows being returned by the least restrictive search is only 32,581.

thanks for any help,

jasonI do not mean to sound overly critical, but, realistically, who looks at 32
thousand rows on a web page? I am not stating that you might not have the
application that is the exception, but apps that dump huge amounts of data
are generally worthless, unless you are talking about reporting (which is
killing a lot of trees to make reams of paper that never get read ;-> ).

I would try paging and see if the data shows with paging on. If so, then you
are dealing with a huge amount of data and that is your problem. Attempt two
would be to turn off ViewState for the DataGrid, as every row you write out
could be writing out many bytes of ViewState data.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

"jason" wrote:

> hello everyone,
> one of my developers is working with a DataGrid component, which uses a
> DataTable as its DataSource.
> the DataTable is populated by a method which calls a stored procedure
> through an SqlCommand object, which accepts two input parameters which
> affect the query range.
> the problem she's experiencing is that with all input parameter values,
> the DataTable is built correctly, and has data in it (this can be
> verified through runtime debugging inspection - but also through
> manually running the stored procedures with all the possible input
> parameter values - they all return greater than zero rows). however,
> when the input parameters are least restrictive (meaning the largest
> range of rows returned) - even though the DataTable has information in
> it, the DataBind operation seems to have no effect whatsoever. after
> the DataBind, the DataGrid displays no data.
> the only thing we can think of is if the DataGrid has a limitation of
> the number of rows it can display? or perhaps just a raw amount of data
> that can be bound to it? that seems unlikely though, since the number
> of rows being returned by the least restrictive search is only 32,581.
> thanks for any help,
> jason
>
32,581 rows will easily eat up all the memory available for the browser and
you will end up with an "out of memory exception" on client side. Make sure
you are not getting client-side errors.

Eliyahu

"jason" <iaesun@.yahoo.com> wrote in message
news:1130855588.047562.259670@.g14g2000cwa.googlegr oups.com...
> hello everyone,
> one of my developers is working with a DataGrid component, which uses a
> DataTable as its DataSource.
> the DataTable is populated by a method which calls a stored procedure
> through an SqlCommand object, which accepts two input parameters which
> affect the query range.
> the problem she's experiencing is that with all input parameter values,
> the DataTable is built correctly, and has data in it (this can be
> verified through runtime debugging inspection - but also through
> manually running the stored procedures with all the possible input
> parameter values - they all return greater than zero rows). however,
> when the input parameters are least restrictive (meaning the largest
> range of rows returned) - even though the DataTable has information in
> it, the DataBind operation seems to have no effect whatsoever. after
> the DataBind, the DataGrid displays no data.
> the only thing we can think of is if the DataGrid has a limitation of
> the number of rows it can display? or perhaps just a raw amount of data
> that can be bound to it? that seems unlikely though, since the number
> of rows being returned by the least restrictive search is only 32,581.
> thanks for any help,
> jason
you're kidding me right? 32K text data rows is literally insignificant
for client side memory concerns, unless each row is an epic poem.
thanks though.

jason
paging did the trick. interesting that paging is required for a certain
volume of data. i'll tinker with the viewstate and see if that's what's
causing the threshold we're seeing.

and to your criticism, you are correct, it is reporting, but why would
you think we're killing trees? that's beauty of web-reporting, no paper
:)
Don't forget about DHTML DOM. Do you know how much memory every object
takes? I don't know, but 32K rows plus number_of_columns x 32K cells could
be too much. One of my applications used to choke up on just few thousand
rows until I limited the number of rows. It did produce an "out of memory"
exception on client.

Eliyahu

"jason" <iaesun@.yahoo.com> wrote in message
news:1130857462.927881.62510@.g49g2000cwa.googlegro ups.com...
> you're kidding me right? 32K text data rows is literally insignificant
> for client side memory concerns, unless each row is an epic poem.
> thanks though.
> jason
Jason,

Things I'd try to check for scaling problems:

1) Try different browsers. Maybe you are hitting a browser limit. So try IE, Firefox,
Opera, etc.

2) Do an HTML GET via a non-browser method on the client and save the result to a
file. You can use Perl or other languages for sending the stuff. See if the text is
all coming back.

3) Try eliminating most of the columns in a trial build and see if you can get more
rows per page if you have less data per row.

I wonder if a large page load could cause a time-out on total transfer time. Don't
think so. But, again, using different browsers might help you control for that.

jason wrote:
> hello everyone,
> one of my developers is working with a DataGrid component, which uses a
> DataTable as its DataSource.
> the DataTable is populated by a method which calls a stored procedure
> through an SqlCommand object, which accepts two input parameters which
> affect the query range.
> the problem she's experiencing is that with all input parameter values,
> the DataTable is built correctly, and has data in it (this can be
> verified through runtime debugging inspection - but also through
> manually running the stored procedures with all the possible input
> parameter values - they all return greater than zero rows). however,
> when the input parameters are least restrictive (meaning the largest
> range of rows returned) - even though the DataTable has information in
> it, the DataBind operation seems to have no effect whatsoever. after
> the DataBind, the DataGrid displays no data.
> the only thing we can think of is if the DataGrid has a limitation of
> the number of rows it can display? or perhaps just a raw amount of data
> that can be bound to it? that seems unlikely though, since the number
> of rows being returned by the least restrictive search is only 32,581.
> thanks for any help,
> jason

maximum datagrid row count?

hello everyone,
one of my developers is working with a DataGrid component, which uses a
DataTable as its DataSource.
the DataTable is populated by a method which calls a stored procedure
through an SqlCommand object, which accepts two input parameters which
affect the query range.
the problem she's experiencing is that with all input parameter values,
the DataTable is built correctly, and has data in it (this can be
verified through runtime debugging inspection - but also through
manually running the stored procedures with all the possible input
parameter values - they all return greater than zero rows). however,
when the input parameters are least restrictive (meaning the largest
range of rows returned) - even though the DataTable has information in
it, the DataBind operation seems to have no effect whatsoever. after
the DataBind, the DataGrid displays no data.
the only thing we can think of is if the DataGrid has a limitation of
the number of rows it can display? or perhaps just a raw amount of data
that can be bound to it? that seems unlikely though, since the number
of rows being returned by the least restrictive search is only 32,581.
thanks for any help,
jasonI do not mean to sound overly critical, but, realistically, who looks at 32
thousand rows on a web page? I am not stating that you might not have the
application that is the exception, but apps that dump huge amounts of data
are generally worthless, unless you are talking about reporting (which is
killing a lot of trees to make reams of paper that never get read ;-> ).
I would try paging and see if the data shows with paging on. If so, then you
are dealing with a huge amount of data and that is your problem. Attempt two
would be to turn off ViewState for the DataGrid, as every row you write out
could be writing out many bytes of ViewState data.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
***************************
Think Outside the Box!
***************************
"jason" wrote:

> hello everyone,
> one of my developers is working with a DataGrid component, which uses a
> DataTable as its DataSource.
> the DataTable is populated by a method which calls a stored procedure
> through an SqlCommand object, which accepts two input parameters which
> affect the query range.
> the problem she's experiencing is that with all input parameter values,
> the DataTable is built correctly, and has data in it (this can be
> verified through runtime debugging inspection - but also through
> manually running the stored procedures with all the possible input
> parameter values - they all return greater than zero rows). however,
> when the input parameters are least restrictive (meaning the largest
> range of rows returned) - even though the DataTable has information in
> it, the DataBind operation seems to have no effect whatsoever. after
> the DataBind, the DataGrid displays no data.
> the only thing we can think of is if the DataGrid has a limitation of
> the number of rows it can display? or perhaps just a raw amount of data
> that can be bound to it? that seems unlikely though, since the number
> of rows being returned by the least restrictive search is only 32,581.
> thanks for any help,
> jason
>
32,581 rows will easily eat up all the memory available for the browser and
you will end up with an "out of memory exception" on client side. Make sure
you are not getting client-side errors.
Eliyahu
"jason" <iaesun@.yahoo.com> wrote in message
news:1130855588.047562.259670@.g14g2000cwa.googlegroups.com...
> hello everyone,
> one of my developers is working with a DataGrid component, which uses a
> DataTable as its DataSource.
> the DataTable is populated by a method which calls a stored procedure
> through an SqlCommand object, which accepts two input parameters which
> affect the query range.
> the problem she's experiencing is that with all input parameter values,
> the DataTable is built correctly, and has data in it (this can be
> verified through runtime debugging inspection - but also through
> manually running the stored procedures with all the possible input
> parameter values - they all return greater than zero rows). however,
> when the input parameters are least restrictive (meaning the largest
> range of rows returned) - even though the DataTable has information in
> it, the DataBind operation seems to have no effect whatsoever. after
> the DataBind, the DataGrid displays no data.
> the only thing we can think of is if the DataGrid has a limitation of
> the number of rows it can display? or perhaps just a raw amount of data
> that can be bound to it? that seems unlikely though, since the number
> of rows being returned by the least restrictive search is only 32,581.
> thanks for any help,
> jason
>
you're kidding me right? 32K text data rows is literally insignificant
for client side memory concerns, unless each row is an epic poem.
thanks though.
jason
paging did the trick. interesting that paging is required for a certain
volume of data. i'll tinker with the viewstate and see if that's what's
causing the threshold we're seeing.
and to your criticism, you are correct, it is reporting, but why would
you think we're killing trees? that's beauty of web-reporting, no paper
:)
Don't forget about DHTML DOM. Do you know how much memory every object
takes? I don't know, but 32K rows plus number_of_columns x 32K cells could
be too much. One of my applications used to choke up on just few thousand
rows until I limited the number of rows. It did produce an "out of memory"
exception on client.
Eliyahu
"jason" <iaesun@.yahoo.com> wrote in message
news:1130857462.927881.62510@.g49g2000cwa.googlegroups.com...
> you're kidding me right? 32K text data rows is literally insignificant
> for client side memory concerns, unless each row is an epic poem.
> thanks though.
> jason
>
Jason,
Things I'd try to check for scaling problems:
1) Try different browsers. Maybe you are hitting a browser limit. So try IE,
Firefox,
Opera, etc.
2) Do an HTML GET via a non-browser method on the client and save the result
to a
file. You can use Perl or other languages for sending the stuff. See if the
text is
all coming back.
3) Try eliminating most of the columns in a trial build and see if you can g
et more
rows per page if you have less data per row.
I wonder if a large page load could cause a time-out on total transfer time.
Don't
think so. But, again, using different browsers might help you control for th
at.
jason wrote:
> hello everyone,
> one of my developers is working with a DataGrid component, which uses a
> DataTable as its DataSource.
> the DataTable is populated by a method which calls a stored procedure
> through an SqlCommand object, which accepts two input parameters which
> affect the query range.
> the problem she's experiencing is that with all input parameter values,
> the DataTable is built correctly, and has data in it (this can be
> verified through runtime debugging inspection - but also through
> manually running the stored procedures with all the possible input
> parameter values - they all return greater than zero rows). however,
> when the input parameters are least restrictive (meaning the largest
> range of rows returned) - even though the DataTable has information in
> it, the DataBind operation seems to have no effect whatsoever. after
> the DataBind, the DataGrid displays no data.
> the only thing we can think of is if the DataGrid has a limitation of
> the number of rows it can display? or perhaps just a raw amount of data
> that can be bound to it? that seems unlikely though, since the number
> of rows being returned by the least restrictive search is only 32,581.
> thanks for any help,
> jason
>

Maximum Filesize attachment?

Can anyone tell me the maximum size of a file allowed when uploaded from an aspx page please & are there any settings to alter this?
Thanks!The default filesize is 4MB and of course there is a way to change it.

Change the machine.config file to update the filesize:

maxRequestLength is the file size

<httpRuntime executionTimeout="90" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" ppRequestQueueLimit="100"/>

Maximum file upload question

In ASP.Net (VS 2005), is there a way to limit the user to upload a
file up to certain size (say, I would like to limit the user to upload
at the maximum 1 meg of file) ?
Thank youSince there is no way for you to tell from the server-side how big the user'
s
file is, you simply check the UploadedFile object's size at the server and
reject it with the appropriate message to the user.
--Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com
"fiefie.niles@.gmail.com" wrote:

> In ASP.Net (VS 2005), is there a way to limit the user to upload a
> file up to certain size (say, I would like to limit the user to upload
> at the maximum 1 meg of file) ?
> Thank you
>
I suppose Peter was talking about HttpPostedFile.ContentLength property :)
WBR, Michael Nemtsev [.NET/C# MVP].
Blog: http://spaces.live.com/laflour
"fiefie.niles@.gmail.com" wrote:

> In ASP.Net (VS 2005), is there a way to limit the user to upload a
> file up to certain size (say, I would like to limit the user to upload
> at the maximum 1 meg of file) ?
> Thank you
>
re:
!> I would like to limit the user to upload at the maximum 1 meg of file
Iy's very simple...
In web.config :
<httpRuntime maxRequestLength="1024"/>
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
<fiefie.niles@.gmail.com> wrote in message news:28988e20-c2f8-4abe-b25a-32e5a334e155@.l22g200
0hsc.googlegroups.com...
> In ASP.Net (VS 2005), is there a way to limit the user to upload a
> file up to certain size (say, I would like to limit the user to upload
> at the maximum 1 meg of file) ?
> Thank you
re:
!> Since there is no way for you to tell from the server-side how big the us
er's file is
There isn't any way to do that, but you can limit the maximum size for any u
ploaded file.
See my just-sent-in tip.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"Peter Bromberg [C# MVP]" <pbromberg@.yahoo.NoSpamMaam.com> wrote in message
news:FD220D8D-0CE2-4D94-9D0E-12A497AF8F1C@.microsoft.com...
> Since there is no way for you to tell from the server-side how big the use
r's
> file is, you simply check the UploadedFile object's size at the server an
d
> reject it with the appropriate message to the user.
> --Peter
> "Inside every large program, there is a small program trying to get out."
> http://www.eggheadcafe.com
> http://petesbloggerama.blogspot.com
> http://www.blogmetafinder.com
>
> "fiefie.niles@.gmail.com" wrote:
>
It should be noted that this entry will limit the size of all HTTP requests
for all pages controlled by that web.config. You can, however, put the
"upload file" page in its own sub-folder and put a web.config in that folder
with the appropriate settings. For example, you might also want to adjust
the timeout value to allow for slow uploads, etc.
I guess my point is, the upload settings for files is probably different
than for "regular" requests, so consider putting pages that upload files
into their own sub-folder with their own web.config.

> !> I would like to limit the user to upload at the maximum 1 meg of file
> Iy's very simple...
> In web.config :
> <httpRuntime maxRequestLength="1024"/>
Hmmm... a bit nitpicky, but true.
I say nitpicky because I've been trying to figure out what an http request l
arger than
1MB looks like, other than an uploaded file...and can't come up with a valid
example.
However, for comprehensiveness sake, ( just in case a request is made which
isn't
an uploaded file but is larger than 1MB ) the following web.config entry wou
ld cover all bases :
<configuration>
<location path="UploadPage.aspx">
<httpRuntime maxRequestLength="1024"/>
</location>
</configuration>
Notice that the entry can be located in the root web.config.
A separate web.config is not needed.
If the upload aspx is in a different directory, including the path will do f
ine :
<location path="/directory/UploadPage.aspx">
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"Scott Roberts" <sroberts@.no.spam.here-webworks-software.com> wrote in messa
ge
news:u2F1T%23lKIHA.5328@.TK2MSFTNGP05.phx.gbl...
> It should be noted that this entry will limit the size of all HTTP request
s for all pages controlled by that
> web.config. You can, however, put the "upload file" page in its own sub-fo
lder and put a web.config in that folder
> with the appropriate settings. For example, you might also want to adjust
the timeout value to allow for slow uploads,
> etc.
> I guess my point is, the upload settings for files is probably different t
han for "regular" requests, so consider
> putting pages that upload files into their own sub-folder with their own w
eb.config.
>
>
Juan,
There probably aren't *valid* requests larger than 1MB that are not file
uploads. Although, if you're not careful the viewstate can get pretty close
to that pretty quick (but then you've got other problems).
It's not so much the request size that I'm concerned about, but the request
timeout. I like to set it pretty high for file uploads, but not so high for
normal pages. Plus, we allow file uploads much larger than 1MB, so I was
really just commenting on file uploads in general.
Thanks for your tips, we may switch to the "location" attribute in order to
keep all config items in one place.
Scott
"Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
news:eV4IPepKIHA.4228@.TK2MSFTNGP02.phx.gbl...
> Hmmm... a bit nitpicky, but true.
> I say nitpicky because I've been trying to figure out what an http request
> larger than
> 1MB looks like, other than an uploaded file...and can't come up with a
> valid example.
> However, for comprehensiveness sake, ( just in case a request is made
> which isn't
> an uploaded file but is larger than 1MB ) the following web.config entry
> would cover all bases :
> <configuration>
> <location path="UploadPage.aspx">
> <httpRuntime maxRequestLength="1024"/>
> </location>
> </configuration>
> Notice that the entry can be located in the root web.config.
> A separate web.config is not needed.
> If the upload aspx is in a different directory, including the path will do
> fine :
> <location path="/directory/UploadPage.aspx">
re:
!> It's not so much the request size that I'm concerned about, but the reque
st timeout.
!> I like to set it pretty high for file uploads, but not so high for normal
pages.
That makes sense...
re:
!> we may switch to the "location" attribute in order to keep all config ite
ms in one place
Yes, doing that keeps config items nice and tidy in one place.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"Scott Roberts" <sroberts@.no.spam.here-webworks-software.com> wrote in messa
ge
news:O%23iIL7rKIHA.2432@.TK2MSFTNGP04.phx.gbl...
> Juan,
> There probably aren't *valid* requests larger than 1MB that are not file u
ploads. Although, if you're not careful the
> viewstate can get pretty close to that pretty quick (but then you've got o
ther problems).
> It's not so much the request size that I'm concerned about, but the reques
t timeout. I like to set it pretty high for
> file uploads, but not so high for normal pages. Plus, we allow file upload
s much larger than 1MB, so I was really just
> commenting on file uploads in general.
> Thanks for your tips, we may switch to the "location" attribute in order t
o keep all config items in one place.
> Scott
>
> "Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message news:eV4IPep
KIHA.4228@.TK2MSFTNGP02.phx.gbl...
>

Maximum file upload question

In ASP.Net (VS 2005), is there a way to limit the user to upload a
file up to certain size (say, I would like to limit the user to upload
at the maximum 1 meg of file) ?
Thank youSince there is no way for you to tell from the server-side how big the user's
file is, you simply check the UploadedFile object's size at the server and
reject it with the appropriate message to the user.

--Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com
"fiefie.niles@.gmail.com" wrote:

Quote:

Originally Posted by

In ASP.Net (VS 2005), is there a way to limit the user to upload a
file up to certain size (say, I would like to limit the user to upload
at the maximum 1 meg of file) ?
Thank you
>


I suppose Peter was talking about HttpPostedFile.ContentLength property :)

--
WBR, Michael Nemtsev [.NET/C# MVP].
Blog: http://spaces.live.com/laflour
"fiefie.niles@.gmail.com" wrote:

Quote:

Originally Posted by

In ASP.Net (VS 2005), is there a way to limit the user to upload a
file up to certain size (say, I would like to limit the user to upload
at the maximum 1 meg of file) ?
Thank you
>


re:
!I would like to limit the user to upload at the maximum 1 meg of file

Iy's very simple...

In web.config :

<httpRuntime maxRequestLength="1024"/>

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
<fiefie.niles@.gmail.comwrote in message news:28988e20-c2f8-4abe-b25a-32e5a334e155@.l22g2000hsc.googlegroups.com...

Quote:

Originally Posted by

In ASP.Net (VS 2005), is there a way to limit the user to upload a
file up to certain size (say, I would like to limit the user to upload
at the maximum 1 meg of file) ?
Thank you


re:
!Since there is no way for you to tell from the server-side how big the user's file is

There isn't any way to do that, but you can limit the maximum size for any uploaded file.
See my just-sent-in tip.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"Peter Bromberg [C# MVP]" <pbromberg@.yahoo.NoSpamMaam.comwrote in message
news:FD220D8D-0CE2-4D94-9D0E-12A497AF8F1C@.microsoft.com...

Quote:

Originally Posted by

Since there is no way for you to tell from the server-side how big the user's
file is, you simply check the UploadedFile object's size at the server and
reject it with the appropriate message to the user.
>
--Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com
>
>
>
"fiefie.niles@.gmail.com" wrote:
>

Quote:

Originally Posted by

>In ASP.Net (VS 2005), is there a way to limit the user to upload a
>file up to certain size (say, I would like to limit the user to upload
>at the maximum 1 meg of file) ?
>Thank you
>>


It should be noted that this entry will limit the size of all HTTP requests
for all pages controlled by that web.config. You can, however, put the
"upload file" page in its own sub-folder and put a web.config in that folder
with the appropriate settings. For example, you might also want to adjust
the timeout value to allow for slow uploads, etc.

I guess my point is, the upload settings for files is probably different
than for "regular" requests, so consider putting pages that upload files
into their own sub-folder with their own web.config.

Quote:

Originally Posted by

!I would like to limit the user to upload at the maximum 1 meg of file
>
Iy's very simple...
>
In web.config :
>
<httpRuntime maxRequestLength="1024"/>


Hmmm... a bit nitpicky, but true.

I say nitpicky because I've been trying to figure out what an http request larger than
1MB looks like, other than an uploaded file...and can't come up with a valid example.

However, for comprehensiveness sake, ( just in case a request is made which isn't
an uploaded file but is larger than 1MB ) the following web.config entry would cover all bases :

<configuration>
<location path="UploadPage.aspx">
<httpRuntime maxRequestLength="1024"/>
</location>
</configuration>

Notice that the entry can be located in the root web.config.
A separate web.config is not needed.

If the upload aspx is in a different directory, including the path will do fine :

<location path="/directory/UploadPage.aspx">

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"Scott Roberts" <sroberts@.no.spam.here-webworks-software.comwrote in message
news:u2F1T%23lKIHA.5328@.TK2MSFTNGP05.phx.gbl...

Quote:

Originally Posted by

It should be noted that this entry will limit the size of all HTTP requests for all pages controlled by that
web.config. You can, however, put the "upload file" page in its own sub-folder and put a web.config in that folder
with the appropriate settings. For example, you might also want to adjust the timeout value to allow for slow uploads,
etc.
>
I guess my point is, the upload settings for files is probably different than for "regular" requests, so consider
putting pages that upload files into their own sub-folder with their own web.config.
>
>

Quote:

Originally Posted by

>!I would like to limit the user to upload at the maximum 1 meg of file
>>
>Iy's very simple...
>>
>In web.config :
>>
><httpRuntime maxRequestLength="1024"/>


>