Hi,

I am getting a server error message when I debug my web application in VS 2008. I am running the apoplication currently on my local machine to get all error cleared up. Please find attached error I am getting.


I appreciate help very much.

VBManinTraining

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

Request is not available in this context
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.Web.HttpException: Request is not available in this context

Source Error:


Line 51: // Fires when the application is started
Line 52:
Line 53: ApplicationPath = Context.Request.ApplicationPath;
Line 54:
Line 55: // Adds resource replacement function ResourceUrl that can be added to a


Source File: C:\DOC\ASD\Web\Application.cs Line: 53

Stack Trace:


[HttpException (0x80004005): Request is not available in this context]
System.Web.HttpContext.get_Request() +8838272
ASD.Web.Application.Application_Start(Object sender, EventArgs e) in C:\DOC\ASD\Web\Application.cs:53
DOC.Global.Application_Start(Object sender, EventArgs e) in C:\DOC\DOC\global.asax:26
ASP.global_asax.Application_Start(Object sender, EventArgs e) in C:\DOC\IMAS\global.asax:6

[HttpException (0x80004005): Request is not available in this context]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +2742682
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +128
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +188
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +295
System.Web.HttpApplicationFactory.GetPipelineApplicationInstance(IntPtr appContext, HttpContext context) +56
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +231

[HttpException (0x80004005): Request is not available in this context]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8941595
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +333