ruthtangerine
New Member
I making changes to the old ASP.NET app created with Framework 2.0. Global.asax don't have Application_Start but when I'm debugging on IIS7 I'm getting errorDescription: 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 contextSource Error:An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.Stack Trace:\[code\][HttpException (0x80004005): Request is not available in this context]System.Web.HttpContext.get_Request() +11207688Microsoft.Practices.CompositeWeb.Services.WebConfigModuleInfoStore.GetConfiguration(String configFilePath) +130Microsoft.Practices.CompositeWeb.Services.WebConfigModuleInfoStore.PopulateSection (ModulesConfigurationSection section, String rootDirectory) +274Microsoft.Practices.CompositeWeb.Services.WebConfigModuleInfoStore.GetModuleConfigurationSection() +103Microsoft.Practices.CompositeWeb.Services.WebModuleEnumerator.EnumerateModules() +216Microsoft.Practices.CompositeWeb.WebClientApplication.LoadModules() +443Microsoft.Practices.CompositeWeb.WebClientApplication.Application_Start(Object sender, EventArgs e) +262[HttpException (0x80004005): Request is not available in this context]System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +4185553System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +205System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +336System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext,HttpContext context) +350System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +382[HttpException (0x80004005): Request is not available in this context]System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11335894System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr,HttpContext context) +4355316\[/code\]When I'm switching for development to the webserver part of VS I'm not getting any kind of error and everything working fine. Any ideas?