views:

5910

answers:

6

I am using IIS6, I've written an HttpModule, and I get this error? After googling the web I find that this problem is caused by the .NET framework 3.5, so I put this on a machine where I didn't install .NET 3.5, but the problem is still there!

+1  A: 

Only IIS7 supports the integrated pipeline. On IIS7 a HttpModule can participate in all requests coming to the web server not just those targeting specific file extensions.

II6 uses what IIS7 calls the classic pipeline where a HttpModules can only get involved once the earlier ISAPI based pipeline determines that the script mapping requires the request to handed over to ASP.NET.

AnthonyWJones
A: 

yeah, i khow that. i am just to use this httpmodule in a asp.net application,i have config the web.config and my old bigfileupload httpmodule works fine but this not.

sdhjl2000
+7  A: 

My attempt at psychic debugging: you're using a statement like:

Response.Headers("X-Foo") = "bar"

If this is indeed the case, changing this as shown below will work around the problem:

Response.AddHeader("X-Foo", "bar")
mdb
A: 

thanks ,i had find that this is cause by the addheader issuse,i use the redirect method in the module and this method call the addheader method ,now i write the direct method myself.3ks again.

sdhjl2000
A: 

I am also facing the same problem using IIS6. How can i solve it? Can anyone figure out my problem Thanks in Advance Regards Sohaib Qazi

Sohaib
A: 

Just came across this problem. Using IIS6 and .NET 3.5. Fix for me was to use Response.AddHeader instead of Response.Headers.Add. HTH.

Michael Itzoe