how do i fix Specified cast is not valid error ?

S

sviau

whats does this mean? how do i fix this? this application is hosted in load
balancing environment. we have loaded the hotfix, and have set the
machinekey to same value in machine.config on each web server (15)

Key Information
Stack trace (0) at System.Web.UI.Page.LoadPageViewState() at
System.Web.UI.Page.ProcessRequestMain()
Source (0) System.Web
Message (0) Specified cast is not valid.
Log ID 21514
URL http://www.mls.ca/REALTORSearch.aspx
 
A

Alvin Bruney [MVP]

you need to provide more information in order to receive help. Perhaps the
lines of code leading up to the error.
 
S

Steven Cheng[MSFT]

Hi sviau,


Thanks for posting in the community!
From your description, you met "in valid case exception" in your web
application? As you mentioned that your application is hosted in load
balancing environment and you set all those multi-servers with the same
machinekey, are you using the FormsAuthentication in web garden situation?
If so, would you provide some further info on the problem you met, such as :
1. Does this problem occur with some certain server in your balancing
environment or occur when visiting every server in the enviroment?

2. Would you please get some further description on the point where the
exception occurs (in which page or which period of code?).

Please check out the above items. If you feel anything unclear or have any
new findings, please feel free to post here.



Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top