• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 370
  • 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
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

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