Cannot Change Blog Instance Settings

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.
1/23/2012 8:17:21 PM
Gravatar
Total Posts 46

Cannot Change Blog Instance Settings

mojoPortal Version 2.3.6.1 MySQL
Operating System Microsoft Windows NT 6.1.7601 Service Pack 1
ASP.NET Info v2.0.50727 Running in Full Trust

I tried to modify the blog instance settings to include the Author Name and got the following error:

2012-01-23 20:09:56,605 ERROR mojoPortal.Web.mojoBasePage - 24.18.147.104-en-US - /Admin/ModuleSettings.aspx?mid=64&pageid=46
System.Web.HttpException: The URL-encoded form data is not valid. ---> System.InvalidOperationException: Operation is not valid due to the current state of the object.
at System.Web.HttpValueCollection.ThrowIfMaxHttpCollectionKeysExceeded()
at System.Web.HttpValueCollection.FillFromEncodedBytes(Byte[] bytes, Encoding encoding)
at System.Web.HttpRequest.FillInFormCollection()
--- End of inner exception stack trace ---
at System.Web.HttpRequest.FillInFormCollection()
at System.Web.HttpRequest.get_Form()
at System.Web.HttpRequest.get_HasForm()
at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
at System.Web.UI.Page.DeterminePostBackMode()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2012-01-23 20:09:56,605 ERROR mojoPortal.Web.Global - 24.18.147.104-en-US - /Admin/ModuleSettings.aspx?mid=64&pageid=46
System.Web.HttpException: The URL-encoded form data is not valid. ---> System.InvalidOperationException: Operation is not valid due to the current state of the object.
at System.Web.HttpValueCollection.ThrowIfMaxHttpCollectionKeysExceeded()
at System.Web.HttpValueCollection.FillFromEncodedBytes(Byte[] bytes, Encoding encoding)
at System.Web.HttpRequest.FillInFormCollection()
--- End of inner exception stack trace ---
at System.Web.HttpRequest.FillInFormCollection()
at System.Web.HttpRequest.get_Form()
at System.Web.HttpRequest.get_HasForm()
at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
at System.Web.UI.Page.DeterminePostBackMode()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 

Any guidance is gratefully accepted :-)

1/24/2012 6:17:21 AM
Gravatar
Total Posts 18439

Re: Cannot Change Blog Instance Settings

Hi,

See this thread for a workaround. This is caused by a new ASP.NET security update, it now throws this error if there is a postback with more than 1000 form elements. If you have a lot of roles then the checkbox lists for permissions on the feature instance settings will produce too many form elements resulting in this error. You may also get this error saving site settings if you have a lot of roles.

The next release of mojoPortal should ship on Thursday and will have a better solution, if the number of roles is higher than 20 it will use separate pages for the permissions to avoid this problem, but the workaround can solve it for now.

Hope that helps,

Joe

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