R
Robert Walter
I want to user the Page method LoadControl inside the Global.asax.cs
but when I instantiate a page and try it I get the following error...
System.NullReferenceException: Object reference not set to an instance
of an object. at System.Web.UI.UserControlParser.GetCompiledUserControlType(String
virtualPath, String inputFile, HttpContext context) at
System.Web.UI.TemplateControl.LoadControl(String virtualPath) at
tt360.Cms.Adm.Global.Timer_Elapsed(Object sender, ElapsedEventArgs e)
in c:\vss\tt3\cms\004\web\tt360.cms.adm\global.asax.cs:line 95
I guess this is becuase the HttpContent is null. Now is there anyway I
can get round this?
Thanks,
Rob.
but when I instantiate a page and try it I get the following error...
System.NullReferenceException: Object reference not set to an instance
of an object. at System.Web.UI.UserControlParser.GetCompiledUserControlType(String
virtualPath, String inputFile, HttpContext context) at
System.Web.UI.TemplateControl.LoadControl(String virtualPath) at
tt360.Cms.Adm.Global.Timer_Elapsed(Object sender, ElapsedEventArgs e)
in c:\vss\tt3\cms\004\web\tt360.cms.adm\global.asax.cs:line 95
I guess this is becuase the HttpContent is null. Now is there anyway I
can get round this?
Thanks,
Rob.