HttpException 0x80004005 invalid state problem!

  • Thread starter Thread starter Yiu
  • Start date Start date
Y

Yiu

I am doing a web application for pocket pc IE using C#.
in the aspx page, when i press the button to run some code, it go to
invalid state error.
So i go to use the enableViewState=false.
It go to other problem say what cannot find the reference when run
cmd.ExcuteScalar().ToString()
anyone can help me?
 
I am doing a web application for pocket pc IE using C#.
in the aspx page, when i press the button to run some code, it go to
invalid state error.

Seems that the number of web controls instantiated on postback does not
match the number of controls saved in the viewstate.
It go to other problem say what cannot find the reference when run
cmd.ExcuteScalar().ToString()

Could you please specify the exact error message? I would assume you haven't
referenced System.Data.dll from your project but if you say you get the
error on runtime, I have no ideas except the CLR cannot locate this assembly
for some reason.
 
Back
Top