johnmc33
asked on
.NET 3.5 Issue with Global.asax
Hi Guys,
I have a crash in a web application I am deploying to .NET 3.5 framework. The error is below ...
[NullReferenceException: Object reference not set to an instance of an object.]
OurApp.Global.Session_Star t(Object sender, EventArgs e) in C:\temp\OurApp05\Sources\G lobal.asax .cs:51
The source code resides in d:\websites\OurApp ... and the virtual directory points there.
My question is (and apologies if this is a silly one) ... Any idea why am I getting an error that a crash happens in C:\temp\OurApp05\Sources\G lobal.asax .cs:51 ... I cant even find this folder on my server? ...
Thanks in advance,
John
I have a crash in a web application I am deploying to .NET 3.5 framework. The error is below ...
[NullReferenceException: Object reference not set to an instance of an object.]
OurApp.Global.Session_Star
The source code resides in d:\websites\OurApp ... and the virtual directory points there.
My question is (and apologies if this is a silly one) ... Any idea why am I getting an error that a crash happens in C:\temp\OurApp05\Sources\G
Thanks in advance,
John
May I Have your Code for Global.asax please .. ( Part where error raises )
ASKER
I am sorry. I cannot give you my code ... but my question is why does the error message say C:\temp\OurApp05\Sources\G lobal.asax .cs:51 .... when the code is in d:\websites ...
I dont even have a c:\temp folder on my server ?
I dont even have a c:\temp folder on my server ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Prince,
Thank you for your help. I have checked this file and no lines appear on line 51.
I also made some change to do a server.transfer as soon as the session started ... and none were picked up ... same error at same line ...
When the compiler says line 51 ... does that mean line 51 of file including comments etc ... or do I need to strip them out ... maybe I am looking at wrong line ?????
If I had the sources I could just compile and debug so I am working blind here ...
Thank you for your help. I have checked this file and no lines appear on line 51.
I also made some change to do a server.transfer as soon as the session started ... and none were picked up ... same error at same line ...
When the compiler says line 51 ... does that mean line 51 of file including comments etc ... or do I need to strip them out ... maybe I am looking at wrong line ?????
If I had the sources I could just compile and debug so I am working blind here ...
are u ensure that all initialization should result with a valid value ?
ASKER
Prince,
Thank you for your help. I have found that all the deployed code I was given was WAY out of date. I have now installed the latest and it is working fine.
Thank you for your time.
John
Thank you for your help. I have found that all the deployed code I was given was WAY out of date. I have now installed the latest and it is working fine.
Thank you for your time.
John