First time running a ASP site, and getting server error in ‘/’ Application

asp.net

[HttpException (0x80004005): Request is not available in this context]
System.Web.HttpContext.get_Request() +11207688
Slingshot.Engine.ApplicationBase.Initialize() +72
Slingshot.Engine.ApplicationBase.Application_Start(Object sender,
EventArgs e) +51

[HttpException (0x80004005): Request is not available in this context]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext
context, HttpApplication app) +4185553
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr
appContext, HttpContext context, MethodInfo[] handlers) +205
System.Web.HttpApplication.InitSpecial(HttpApplicationState state,
MethodInfo[] handlers, IntPtr appContext, HttpContext context) +336
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr
appContext, HttpContext context) +350
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr
appContext) +382

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

Anyone have a clue where I could start?

Its also my first time running a local IIS web app. Is there things I haven't installed yet? I'm just not sure what these errors mean or where I could get started?

Best Answer

You are executing some code that requires the request object in your application start event and that cannot be done because the application is started before the request is handled. Put the code that needs the request in your begin request event.

Related Topic