Resolving "this operation requires IIS integration pipeline mode" in MVC2

I'm developing an MVC2 application, and implement an export to .csv controller action, but when I add the headers to force the download, The following appears in the debugger:

"this operation requires IIS integration pipeline mode"

I have searched on numerouse sites with Google, but have yet to resolve this. I am using:

  • IIS 7.5
  • Windows 7 Ultimate and
  • .Net Framework 4.0,

The application pools for are configured in integrated pipeline mode, as I don't understand the problem.

Can the community assist me solving this and explaining the error to me?


"You can work around this problem by adding your header this way instead:"

Response.AddHeader("myHeader", "someValue");

Go to Project Project properties (right click on project) and go to web tab on left side and check the property use Local IIS Web Server. enter image description here

Need Your Help Mvc: Ninject - IPrincipal inversion-of-control ninject iprincipal

I was wondering how I could bind the IPrincipal to HttpContext.Current.User in Mvc with Ninject.

How can I do something like: USE @databaseName

sql-server tsql

DECLARE @DatabaseName NVARCHAR(max); SET @DatabaseName = 'MainDb'