Link to home
Start Free TrialLog in
Avatar of johnmc33
johnmc33Flag for United States of America

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_Start(Object sender, EventArgs e) in C:\temp\OurApp05\Sources\Global.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\Global.asax.cs:51 ... I cant even find this folder on my server? ...

Thanks in advance,
John
Avatar of princeatapi
princeatapi
Flag of India image

May I Have your Code for Global.asax please .. ( Part where error raises )
Avatar of johnmc33

ASKER

I am sorry. I cannot give you my code ... but my question is why does the error message say C:\temp\OurApp05\Sources\Global.asax.cs:51  .... when the code is in d:\websites ...

I dont even have a c:\temp folder on my server ?
ASKER CERTIFIED SOLUTION
Avatar of princeatapi
princeatapi
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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 ...


are  u ensure that all initialization should result with a valid value ?
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