• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 367
  • Last Modified:

.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
0
johnmc33
Asked:
johnmc33
  • 3
  • 3
1 Solution
 
princeatapiCommented:
May I Have your Code for Global.asax please .. ( Part where error raises )
0
 
johnmc33Author Commented:
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 ?
0
 
princeatapiCommented:
that wasn't an issue during execution all this happens server will create Temporary folder to launch your application , thats  common , well do check the line no 51 ( in your .acaxc.cs )
0
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
johnmc33Author Commented:
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 ...


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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now