Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# jimmyfingers 4/8/2010 4:20 PM
Hi,

I've just upgraded my server from Windows 2003 to 2008 (IIS7) but keep getting the 'Response is not available in this context' error below.

The Global.cs file that looks like is causing the error is just like it came out of the box.



Server Error in '/' Application.

--------------------------------------------------------------------------------

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

Source 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:


[HttpException (0x80004005): Response is not available in this context.]
System.Web.HttpContext.get_Response() +8783672
Cuyahoga.Web.Global.CheckInstaller() in C:\CodeSafe\Trunk160\CMS\Web\Global.asax.cs:139
Cuyahoga.Web.Global.Application_Start(Object sender, EventArgs e) in C:\CodeSafe\Trunk160\CMS\Web\Global.asax.cs:57

[HttpException (0x80004005): Response is not available in this context.]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +2723014
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): Response is not available in this context.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8890735
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +333
# martijnb 4/9/2010 9:41 AM
You have to run Cuyahoga 1.6 in a classic application pool on IIS7. From Cuyahoga 2.0, integrated mode is supported.