4
votes

[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?

2

2 Answers

3
votes

As you see you get 3 times the same error, one say Slingshot.Engine, that means all your starting modules have the same problem.

This is means that you run IIS7 on Integrated pipeline. For start you can turn it to Classic mode, to let the site run, and later change your application code to not use the request context at Application_start

If you absolute need to use the context first time you run your application, make a one time Initialize at the Application_BeginRequest that have the context.

4
votes

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.