T
tao lin
Hi, all
I am using VS 2005 under windows 2000.
I just upgrade my asp.net app from 1.1 to 2.0. And I found a very strange
proglem in my Global.asax.cs's Application_BeginRequest function, here is my
code:
protected void Application_BeginRequest(Object sender, EventArgs e) {
if (Request.Params["client"] != null)
this.Context.Items.Add("ClientCode", Request.Params["client"]);
else
throw(new NullClinetException());
......
}
In my Asp.net 1.1, everything works fine. But after I upgraded to Asp.net
2.0, when I input my query string like this:
http://localhost/MyWeb/DesktopDefault.aspx?client=PT&tabindex=1&tabid=10
It raise the follow exception:
NullClinetException: System error.
at PaperTiger.Global.Application_BeginRequest(Object sender, EventArgs e)
in c:\Projects\\MyWeb\App_Code\Global.asax.cs:line 117
at
System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication
..IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)
Is there anything changed between Asp.net 1.1 and 2.0, and I need to modify
my code?
Cheers,
Tao
I am using VS 2005 under windows 2000.
I just upgrade my asp.net app from 1.1 to 2.0. And I found a very strange
proglem in my Global.asax.cs's Application_BeginRequest function, here is my
code:
protected void Application_BeginRequest(Object sender, EventArgs e) {
if (Request.Params["client"] != null)
this.Context.Items.Add("ClientCode", Request.Params["client"]);
else
throw(new NullClinetException());
......
}
In my Asp.net 1.1, everything works fine. But after I upgraded to Asp.net
2.0, when I input my query string like this:
http://localhost/MyWeb/DesktopDefault.aspx?client=PT&tabindex=1&tabid=10
It raise the follow exception:
NullClinetException: System error.
at PaperTiger.Global.Application_BeginRequest(Object sender, EventArgs e)
in c:\Projects\\MyWeb\App_Code\Global.asax.cs:line 117
at
System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication
..IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)
Is there anything changed between Asp.net 1.1 and 2.0, and I need to modify
my code?
Cheers,
Tao