Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - View state
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

View state

 Post Reply Post Reply Page  12>
Author
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Topic: View state
    Posted: 14 September 2003 at 9:01am

Every so often i get this very annoying error:

Server Error in '/' Application.

The View State is invalid for this page and might be corrupted.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The View State is invalid for this page and might be corrupted.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): The View State is invalid for this page and might be corrupted.]
   System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +151
   System.Web.UI.Page.LoadPageViewState() +16
   System.Web.UI.Page.ProcessRequestMain() +421


Version Information: Microsoft .NET Framework Version:1.0.3705.288; ASP.NET Version:1.0.3705.288

How can i prevent it?

Thanks, Mart.

Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 14 September 2003 at 9:25am

Isn't this somesort of a feature in the web.config file? If so, try turning it off, or update your .NET framework.

Gone..
Back to Top
otaku View Drop Down
Newbie
Newbie


Joined: 01 June 2003
Location: Canada
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote otaku Quote  Post ReplyReply Direct Link To This Post Posted: 14 September 2003 at 12:37pm

You probably uses Server.Transfer in your page,
if yes follow the link below to resolve this problem:

http://support.microsoft.com/default.aspx?scid=http://suppor t.microsoft.com:80/support/kb/articles/Q316/9/20.asp&NoW ebContent=1

Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 15 September 2003 at 9:20am

Nope and Nope, I tried using the header EnableViewState="false" and it still happens and it doesnt use server.transfer.

Any other ideas?

Thanks, Mart.

Back to Top
otaku View Drop Down
Newbie
Newbie


Joined: 01 June 2003
Location: Canada
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote otaku Quote  Post ReplyReply Direct Link To This Post Posted: 15 September 2003 at 10:06am
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 16 September 2003 at 9:12am

Thanks, but there has to be a pernament way... How can MS just tell you to change the URL???  Its there error they should release a patch!

I mean how I am supposde to tell my visitors to change the URL if they get a viewstate error!

Does anyone know a trick to fix this?

Thanks, Mart

Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 16 September 2003 at 9:16am
Gone..
Back to Top
otaku View Drop Down
Newbie
Newbie


Joined: 01 June 2003
Location: Canada
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote otaku Quote  Post ReplyReply Direct Link To This Post Posted: 16 September 2003 at 10:15am

Hello Mart,

Thanks, but there has to be a pernament way...

Did you acquired the hotfix from Microsoft like they suggest in the link i give you ?  An other thing you can do is to upgrade to Framework 1.1 cause this bug is for Framework 1.0

I mean how I am supposde to tell my visitors to change the URL if they get a viewstate error!

Is this the hotfix from Microsoft ??? What i know about this bug is that only occurs on production server so your visitors won't see it. But you see that error and i understand your frustation. Last suggestion from me is to recreate an other project with vs.net and imports your files.

Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.