473,385 Members | 1,468 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

max size for form fields?

http://www.support.microsoft.com/def...=kb;EN;q273482

the above speaks for ASP and IIS4, but is it true for the IIS version that
comes with Win2000 and with ASP.net?

that is, cause at some very big forms, I get lots of the following errors:

System.Web.HttpException: The viewstate is invalid for this page and might
be corrupted.

at System.Web.UI.Page.LoadPageStateFromPersistenceMed ium()

at System.Web.UI.Page.LoadPageViewState()

at System.Web.UI.Page.ProcessRequestMain().
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
George Birbilis <bi******@kagi.com>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ QuickTime VCL and ActiveX controls (for PowerPoint/VB/Delphi etc.)
+ Plugs VCL and ActiveX controls (InterProcess/Internet communication)
+ TransFormations, VB6 forms to ASP.net WebForms convertion
http://www.kagi.com/birbilis
+ Robotics
http://www.mech.upatras.gr/~robgroup
.................................................. .......................
Nov 18 '05 #1
4 2357
The first question that comes to mind is, how much data are you trying to
post? The error message you posted seems to be unrelated, but if you are
posting over the limit stated in the KB article, it might be.

--
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"George Birbilis" <bi******@kagi.com> wrote in message
news:#h**************@TK2MSFTNGP09.phx.gbl...
http://www.support.microsoft.com/def...=kb;EN;q273482

the above speaks for ASP and IIS4, but is it true for the IIS version that
comes with Win2000 and with ASP.net?

that is, cause at some very big forms, I get lots of the following errors:

System.Web.HttpException: The viewstate is invalid for this page and might
be corrupted.

at System.Web.UI.Page.LoadPageStateFromPersistenceMed ium()

at System.Web.UI.Page.LoadPageViewState()

at System.Web.UI.Page.ProcessRequestMain().
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
George Birbilis <bi******@kagi.com>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ QuickTime VCL and ActiveX controls (for PowerPoint/VB/Delphi etc.)
+ Plugs VCL and ActiveX controls (InterProcess/Internet communication)
+ TransFormations, VB6 forms to ASP.net WebForms convertion
http://www.kagi.com/birbilis
+ Robotics
http://www.mech.upatras.gr/~robgroup
.................................................. ......................

Nov 18 '05 #2
> The first question that comes to mind is, how much data are you trying to
post? The error message you posted seems to be unrelated, but if you are
posting over the limit stated in the KB article, it might be.


thanks for your reply,

1) the _VIEWSTATE form field can be more than 128KB in that form and the
total form is 600KB+ (can't change that, it's many very big forms)

2) in machine.config for ASP.net1.1 I see:

<!--
httpRuntime Attributes:
executionTimeout="[seconds]" - time in seconds before request is
automatically timed out
maxRequestLength="[KBytes]" - KBytes size of maximum request
length to accept
useFullyQualifiedRedirectUrl="[true|false]" - Fully qualifiy the
URL for client redirects
minFreeThreads="[count]" - minimum number of free thread to allow
execution of new requests
minLocalRequestFreeThreads="[count]" - minimum number of free
thread to allow execution of new local requests
appRequestQueueLimit="[count]" - maximum number of requests queued
for the application
enableKernelOutputCache="[true|false]" - enable the http.sys cache
on IIS6 and higher - default is true
enableVersionHeader="[true|false]" - outputs X-AspNet-Version
header with each request
-->
<httpRuntime executionTimeout="90" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
enableVersionHeader="true"/>

so the "maxRequestLength" may be related to the problem, but since locally
on my machine it works (and with many other remote machines it works OK with
600Kb form sizes) and only in random users it logs theses errors, it's very
strange

thanks for any insight on that, I'm thinking of overriding the
httpRuntime/maxRequestLength in my web.config file, but not sure how big to
set it (how can I find [can log them then easily to the event log] the
request sizes to see how big a number they reach?)

so since maxRequestLength is 4096 KBytes and not overriden currently at
web.config, I don't see how this one could be the problem, but I wonder if
there's some IIS5 setting somewhere related to that problem

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
George Birbilis <bi******@kagi.com>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ QuickTime VCL and ActiveX controls (for PowerPoint/VB/Delphi etc.)
+ Plugs VCL and ActiveX controls (InterProcess/Internet communication)
+ TransFormations, VB6 forms to ASP.net WebForms convertion
http://www.kagi.com/birbilis
+ Robotics
http://www.mech.upatras.gr/~robgroup
.................................................. .......................

Nov 18 '05 #3
Hi George,

First, I would question whether it is truly not possible to break your form
into smaller pieces. The intermitttent problem is no doubt linked to the
size of the Request. Although the maxRequestLength may be small enough, it
may have something to do with the executionTimeout configuration, which
limits the length of time a Request can take, and this may have something to
do with it. Other than that, I can't think of anything.

--
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"George Birbilis" <bi******@kagi.com> wrote in message
news:eH**************@TK2MSFTNGP12.phx.gbl...
The first question that comes to mind is, how much data are you trying to post? The error message you posted seems to be unrelated, but if you are
posting over the limit stated in the KB article, it might be.
thanks for your reply,

1) the _VIEWSTATE form field can be more than 128KB in that form and the
total form is 600KB+ (can't change that, it's many very big forms)

2) in machine.config for ASP.net1.1 I see:

<!--
httpRuntime Attributes:
executionTimeout="[seconds]" - time in seconds before request is
automatically timed out
maxRequestLength="[KBytes]" - KBytes size of maximum request
length to accept
useFullyQualifiedRedirectUrl="[true|false]" - Fully qualifiy the
URL for client redirects
minFreeThreads="[count]" - minimum number of free thread to

allow execution of new requests
minLocalRequestFreeThreads="[count]" - minimum number of free
thread to allow execution of new local requests
appRequestQueueLimit="[count]" - maximum number of requests queued for the application
enableKernelOutputCache="[true|false]" - enable the http.sys cache on IIS6 and higher - default is true
enableVersionHeader="[true|false]" - outputs X-AspNet-Version
header with each request
-->
<httpRuntime executionTimeout="90" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
enableVersionHeader="true"/>

so the "maxRequestLength" may be related to the problem, but since locally
on my machine it works (and with many other remote machines it works OK with 600Kb form sizes) and only in random users it logs theses errors, it's very strange

thanks for any insight on that, I'm thinking of overriding the
httpRuntime/maxRequestLength in my web.config file, but not sure how big to set it (how can I find [can log them then easily to the event log] the
request sizes to see how big a number they reach?)

so since maxRequestLength is 4096 KBytes and not overriden currently at
web.config, I don't see how this one could be the problem, but I wonder if
there's some IIS5 setting somewhere related to that problem

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
George Birbilis <bi******@kagi.com>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ QuickTime VCL and ActiveX controls (for PowerPoint/VB/Delphi etc.)
+ Plugs VCL and ActiveX controls (InterProcess/Internet communication)
+ TransFormations, VB6 forms to ASP.net WebForms convertion
http://www.kagi.com/birbilis
+ Robotics
http://www.mech.upatras.gr/~robgroup
.................................................. ......................

Nov 18 '05 #4
if any of your users use a proxy server, it may truncate the viewstate. 4k
is a common max length for a text (hidden) field. (textareas are handled
differently).

you should pare the viewstate down to below 2k if its an internet site.

-- bruce (sqlwork.com)

"George Birbilis" <bi******@kagi.com> wrote in message
news:eH**************@TK2MSFTNGP12.phx.gbl...
The first question that comes to mind is, how much data are you trying to post? The error message you posted seems to be unrelated, but if you are
posting over the limit stated in the KB article, it might be.
thanks for your reply,

1) the _VIEWSTATE form field can be more than 128KB in that form and the
total form is 600KB+ (can't change that, it's many very big forms)

2) in machine.config for ASP.net1.1 I see:

<!--
httpRuntime Attributes:
executionTimeout="[seconds]" - time in seconds before request is
automatically timed out
maxRequestLength="[KBytes]" - KBytes size of maximum request
length to accept
useFullyQualifiedRedirectUrl="[true|false]" - Fully qualifiy the
URL for client redirects
minFreeThreads="[count]" - minimum number of free thread to

allow execution of new requests
minLocalRequestFreeThreads="[count]" - minimum number of free
thread to allow execution of new local requests
appRequestQueueLimit="[count]" - maximum number of requests queued for the application
enableKernelOutputCache="[true|false]" - enable the http.sys cache on IIS6 and higher - default is true
enableVersionHeader="[true|false]" - outputs X-AspNet-Version
header with each request
-->
<httpRuntime executionTimeout="90" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100"
enableVersionHeader="true"/>

so the "maxRequestLength" may be related to the problem, but since locally
on my machine it works (and with many other remote machines it works OK with 600Kb form sizes) and only in random users it logs theses errors, it's very strange

thanks for any insight on that, I'm thinking of overriding the
httpRuntime/maxRequestLength in my web.config file, but not sure how big to set it (how can I find [can log them then easily to the event log] the
request sizes to see how big a number they reach?)

so since maxRequestLength is 4096 KBytes and not overriden currently at
web.config, I don't see how this one could be the problem, but I wonder if
there's some IIS5 setting somewhere related to that problem

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
George Birbilis <bi******@kagi.com>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ QuickTime VCL and ActiveX controls (for PowerPoint/VB/Delphi etc.)
+ Plugs VCL and ActiveX controls (InterProcess/Internet communication)
+ TransFormations, VB6 forms to ASP.net WebForms convertion
http://www.kagi.com/birbilis
+ Robotics
http://www.mech.upatras.gr/~robgroup
.................................................. ......................

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Gerard Cany | last post by:
I have a problem with a javascript that seems related to the number/size of parameters sent by the form The method for the form is POST (not GET, I know the size limit with GET) The symptom :...
2
by: Michelle | last post by:
Hi all I have used knowledge base article 112747 to improve my subforms performance. I am using Access 97. I have a main form where i put an extra textbox which concatenated TeamID WeekNum...
4
by: cover | last post by:
I have two distinctively different pieces of equipment that I'm trying to build a database for, each having 20 inputs which makes my mysql table 40 fields wide. Form one is for 'shakers' and...
3
by: Adam Smith | last post by:
Hello, How does one adjust the input field size (height) in a form, say to accept 10pt rather than the 12pt txt that apparently is the norm. Thanks --Adam--
0
by: Nickneem | last post by:
I'm having a hard time trying to print a crystal report on a 1400 x 2970 (mm) custom form. I created a new form (start - settings - printers - server properties - create new form) 14 x 29,7 cm. In...
3
by: afr0ninja | last post by:
Hello! I'm currently working on a form that has several input fields and a subform. What I'm trying to accomplish is that when I first open the form I'd like to have the input fields displayed...
18
by: Diogenes | last post by:
Hi All; I, like others, have been frustrated with designing forms that look and flow the same in both IE and Firefox. They simply did not scale the same. I have discovered, to my chagrin,...
1
by: Simon Gare | last post by:
Hi, I cant seem to alter the text size on the code below only the colour, the code you see is all that the page consists of from start to finish that's all of it, cant apply css nothing works. ...
1
by: chrisj | last post by:
I'm using freeASPupload and got some assistance integrating to a Member script. It works successfully. In this modified version there are two groups that use this upload script. Members of one...
23
by: deewe | last post by:
Hello, I'm unable to resize the visible part of a form only to display what I want to show. (upper left) Here what I did: - I made a form with a tab control that has 3 pages - Added all...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.