PBWMan
asked on
Classic ASP Global.asa and ASP.NET Global.asax
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.NullReferenceExcept ion: 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(Objec t sender, EventArgs e) in c:\inetpub\wwwroot\ToDoLis t\ToDoList \OverDue.a spx.vb:67
System.Web.UI.Control.OnLo ad(EventAr gs e) +67
System.Web.UI.Control.Load Recursive( ) +35
System.Web.UI.Page.Process RequestMai n() +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 ?
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.NullReferenceExcept
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_
System.Web.UI.Control.OnLo
System.Web.UI.Control.Load
System.Web.UI.Page.Process
--------------------------
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 ?
ASKER
I found that one - but I didnt particularly like his method.
I like this one better
http://www.eggheadcafe.com/articles/20021207.asp
I like this one better
http://www.eggheadcafe.com/articles/20021207.asp
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
here's an msdn article on the subject:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/converttoaspnet.asp