ViewStateException

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.
2/8/2015 5:07:38 PM
Gravatar
Total Posts 40

ViewStateException

Hi. I've recently experienced a problem with my Mojoportal installation in that whenever I try to login I get an error. When checking the error log (via FTP) I see the following error (IP's / Domains hashed out...):

 

2015-02-08 22:54:22,079 ERROR ##.##.##.## - en-GB - / - mojoPortal.Web.Global -  Referrer(http://www.##########.co.uk/Secure/Login.aspx?returnurl=%2fDefault.aspx) useragent Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)
System.Web.UI.ViewStateException: Invalid viewstate.
    Client IP: ##.##.##.##
    Port: 34086
    Referer: http://www.##########.co.uk/Secure/Login.aspx?returnurl=%2fDefault.aspx
    Path: /default.aspx
    User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)
    ViewState: znuLR/VaE9UhvkaSKkFVPQHsHG8iFSO5PiC4qKwgF6SMomIRJlWO9s54Bnc31sC9qicA7VY4sGZpy6Cya06irSG2e2/zK+6VrzMWMSybgChxR9GOgO869B7726D1ByUtTAuDnmvmFfBVRWkXpSmnf+WzorhzRLZx7/X8nwdEd3Y/Fiq0dD8wMfxrf5dcaXckdzR2PNi4GmtA545HGA8Pw9pXyXrRpa804bnRQZSyEbZoVnd3rKGy2OlEBQGWR8bEXcfyS2EFgTpI9tIj4h4yUsbUW+up7AwwSy2efah5O/IQ3SgURuVZ0X2NjXDdFaIxzVnZZzBpn5NzYYhS2hXBaVYz4ZjDs4vPyo4GmEbJGFMW5RJM6143eW10DozukCyZioC6K6uCp00iyyemFIyNOaILgwr1MhXWRD3z628zI7txmhP+SDyMSMTMobjc5ZlhPBQ4sRcLzPyF/L/Y3GqrHzuEGZOvi4nXWlzjsPKVGM7lW8FoT/TarpDzNv/0JI5HNlL76GsEyNJ7W53j7mTzk5AWi46hVw10oMFn0hL3uaKyO4IhavSz5DCx6Nqwo1cf8vO+r3s48s0jg5jdIO+Vzv3YdS5syKARV5puJPez5/eTBty3o810ZTydGzQpG/YcLmUUt1zNuBrYCN99MPRgPXvUJ/GwZDDzC+msWIuUT2A8fQ4aVRPgfEG8vbgW+PJ2wFQXYTw5bWYkQo7eolGAAH+yy8yKLpZC2TDaH3Ucg9p4TJ9slhZAOmVKJb8LNWRTA0Pu398...
2015-02-08 22:55:16,991 INFO (null) - (null) - (null) - mojoPortal.Web.Global - Global.asax.cs Application_End

I have subsequently upgraded to v2.4.0.8, but I still get the same errors. I am using ASPNET 4.5 and I have made sure that I copied my original machinekey into the web.config. I have also tried from different PC's using Firefox, IE & Chrome all with the same result.

Any ideas?

Thanks,

Craig

2/9/2015 11:25:34 AM
Gravatar
Total Posts 18439

Re: ViewStateException

If the problem were specific to IE 10/11 I would suspect that there are missing windows updates on the server.

Since the problem happens in other browsers my first guess is something funky in the skin, so maybe try one of the included skins to see if it is a skin specific problem.

 

2/10/2015 9:06:18 AM
Gravatar
Total Posts 40

Re: ViewStateException

Hi Joe,

Thanks for the reply. The fun that I had was that I couldn't login, so I was having difficulty changing the skin! I've done some experimenting & have found something rather strange...

I copied a brand new v2.4.0.8 installation onto a different domain, but used the same machinekey & connected to the original database. Everything worked fine! That made me think that your comment about skins might be where the problem was. Infact, my web hoster suggested it might be a similar problem & directed me to this blog: http://blogs.msdn.com/b/webdev/archive/2014/09/09/farewell-enableviewstatemac.aspx.

However, after backing up the old 'data' directory, I deleted it & copied a fresh data directory in it's place. Essentially both instances on both domains were then identical & are using the same database. The new domain works fine, but the old original one still has the same issues! Both are running in the same isolated application pool, ASPNET 4.5, IIS 7.5. I'll get back to my domain host & see if they can shed any light why this might be occurring and will let you know if I find a solution...

2/11/2015 4:18:47 AM
Gravatar
Total Posts 40

Re: ViewStateException

Hi Joe,

I've found the problem. During a recent upgrade by my web hoster my ASPNET application was changed from 'classic' to 'integrated' pipeline mode. My second test mojoportal installation was running in classic mode. By changing the main installation back to classic it's now working fine.

Cheers, 

Craig

2/11/2015 7:19:23 AM
Gravatar
Total Posts 18439

Re: ViewStateException

Hi Craig,

Thanks for the beer! Much appreciated.

I'm glad you were able to solve the problem. However, I would note that mojoPortal can run using either Classic or Integrated pipeline, and Integrated is actually preferred and Classic is considered legacy. All my sites are using Integrated, but if that solved it for your hosting environment that is ok too.

Cheers,

Joe

2/11/2015 1:20:06 PM
Gravatar
Total Posts 40

Re: ViewStateException

It's a pleasure - thanks for your help - and a superb product!

I'll mention this to my web hoster & see if they can identify the problem.

2/11/2015 2:19:30 PM
Gravatar
Total Posts 40

Re: ViewStateException

Joe, I've just found something interesting. If I'm in integrated mode the application runs fine on a new auto-generated MSSQL database, but if I connect it to my old one I get the errors. I've been using this old database for the last couple of years over several update versions. Is it possible that something has changed in the database setup that is causing the problems?

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