SharedFile feature prevents uploads at a certain number of pdf files

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
8/15/2012 7:01:40 PM
Gravatar
Total Posts 27

SharedFile feature prevents uploads at a certain number of pdf files

  • MojoPortal Version 2.3.6.2
  • MSSQLOperating System Microsoft Windows NT 6.0.6002 Service Pack 2
  • ASP.NET Info v2.0.50727 Running in Full Trust
  • SQL Server 2008 R2

the following page errors out when attempting to upload additional pdfs via the SharedFiles.

url: http://yc-acc.yccd.edu/yc-resources.aspx

error:2012-08-15 16:07:17,237 ERROR mojoPortal.Web.mojoBasePage - 10.10.16.68-en-US - /yc-resources.aspx
System.InvalidOperationException: Operation is not valid due to the current state of the object.

as per forums -- upped value here in <add key="aspnet:MaxHttpCollectionKeys" value="3000"/> -- still errors out. Have we reached the practical limit of this feature on this page?  Should we keep upping the value= number?

Would upgrading to the current version fix this -- or should we break this page into one page per SharedFiles feature - thus limiting the number of files on each page?

 

 

8/16/2012 8:20:22 AM
Gravatar
Total Posts 18439

Re: SharedFile feature prevents uploads at a certain number of pdf files

You could keep increasing that number, or it should also help if you group the files so there are not too many per folder, and not too many top level folders. The more items databound to the grid at once will increase the number of form elements and viewstate.

Also you can remove this attribute from the <pages element in Web.config:

maxPageStateFieldLength="500"

removing that will set the viewstate size to the default which is much larger so that there will be fewer separate hidden elements used for viewstate. ie it doesn't reduce the amount of viewstate but it reduces the number of separate viewstate elements.

The only reason we set it low is because in some older phone browsers it would not load hidden fields if they are very large.

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.