Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Classic ASP Global.asa and ASP.NET Global.asax

Posted on 2004-04-12
4
747 Views
Last Modified: 2007-12-19
Hi all,
     My old application is in classic ASP.
     I am creating new modules in ASP.NET and integrating them with the older version.

     My problem is that I use session variables in both versions.
     But now that Im copying over my global.asax, I get the following error :
-------------------------------------------------------------------------------

Server Error in '/' Application.
--------------------------------------------------------------------------------

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ToDoList.OverDueList.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\ToDoList\ToDoList\OverDue.aspx.vb:67
   System.Web.UI.Control.OnLoad(EventArgs e) +67
   System.Web.UI.Control.LoadRecursive() +35
   System.Web.UI.Page.ProcessRequestMain() +731
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

--------------------------------------------------------------------------------


This runs absolutely fine on my local machine.
The only reason I can think of for this error is because of the global.asa and global.asax clash ?
Am i right ?? How do I solve this ???
Could it be a path issue ? Does the created dll carry the localhost path somewhere in it ?
0
Comment
Question by:PBWMan
4 Comments
 
LVL 9

Expert Comment

by:msdixon
ID: 10806753
the .net version and older version can't share session information. you use a commonly available data storage location... ie: database, querystring, cookies, etc.

here's an msdn article on the subject:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/converttoaspnet.asp
0
 
LVL 1

Author Comment

by:PBWMan
ID: 10807668
I found that one - but I didnt particularly like his method.

I like this one better

http://www.eggheadcafe.com/articles/20021207.asp
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 11249571
PAQed, with points refunded (200)

modulo
Community Support Moderator
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question