M
Mark Rae
Hi,
I'm presently converting a v1.1 ASP.NET app to v2, and am encountering a
strange problem.
When running in Debug mode (i.e. hitting F5), all is well.
However, when running without debugging (i.e. hitting Ctrl-F5), every so
often (it seems to be totally random) the entire Session seems to get torn
down causing Session_Start to fire again, thereby losing any Session
variables which have been created. This, in turn, causes the standard
"Object reference not set to an instance of an object" error because the
Session object which the code is expecting is not there.
Also, strangely, the Error Source for the above errors is always slightly
different e.g.
App_Web_zsxmxts_
App_Web_oxwoppmb
App_Web_82ilyo2x
App_Web_5iwdsnnv
App_Web_5iwdsnnv
App_Web_sog3df_f
I found the following article: http://forums.asp.net/thread/1271201.aspx but
the MS HotFix it refers to doesn't seem to have anything do do with my
current problem.
Has anyone seen anything like this before? I must have converted a dozen or
so v1.1 apps to v2 by now, and I've never encountered anything remotely
similar...
Any assistance gratefully received.
Mark
I'm presently converting a v1.1 ASP.NET app to v2, and am encountering a
strange problem.
When running in Debug mode (i.e. hitting F5), all is well.
However, when running without debugging (i.e. hitting Ctrl-F5), every so
often (it seems to be totally random) the entire Session seems to get torn
down causing Session_Start to fire again, thereby losing any Session
variables which have been created. This, in turn, causes the standard
"Object reference not set to an instance of an object" error because the
Session object which the code is expecting is not there.
Also, strangely, the Error Source for the above errors is always slightly
different e.g.
App_Web_zsxmxts_
App_Web_oxwoppmb
App_Web_82ilyo2x
App_Web_5iwdsnnv
App_Web_5iwdsnnv
App_Web_sog3df_f
I found the following article: http://forums.asp.net/thread/1271201.aspx but
the MS HotFix it refers to doesn't seem to have anything do do with my
current problem.
Has anyone seen anything like this before? I must have converted a dozen or
so v1.1 apps to v2 by now, and I've never encountered anything remotely
similar...
Any assistance gratefully received.
Mark