ASP.NET 2.0/VWD "This operation requires IIS integrated pipeline mode" when accessing Response.Headers

I am trying to manipulate the response directly to provide a file to the user by changing the headers and writing the file to the outputstream.

the Response.Headers.Add throws the exception "This operation requires IIS integrated pipeline mode."


I am using VWD 2005 but previously had VS2008 beta 2 installed which has a known issue of breaking (see http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=297517)

my problem is that I have uninstalled .net 3/3.5, VS2008 and reinstalled both .net 2.0 and VWD yet the problem still exists.

Anyone managed to un-break this?
LVL 15
Solar_FlareAsked:
Who is Participating?
 
ukwebguyConnect With a Mentor Commented:
I had this problem and fixed it by changing

 Response.Headers.Add

to

Response.AddHeaders or Response.AddHeader

UKWebGuy
0
 
Bob LearnedCommented:
I can't quite see what you have done, and are trying to undo.

Bob
0
 
Solar_FlareAuthor Commented:
if you follow the link in the question you will see the confirmed problem. I want to solve the problem and have reinstalled everything yet I still get the exception thrown (which is the bug).

I was hoping that someone else had managed to undo what VS2008 beta broke. but it dosen't look hopeful.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
Bob LearnedCommented:
Ok, now I see it.  You installed .NET 2.0 SP1 Beta, and you need to find a fix for what that messed up.  Did you reinstall the RCM version for .NET 2.0 SP1?

Bob
0
 
Solar_FlareAuthor Commented:
The installaion of VS2008 beta broke something in .NET 2.0 Framework, causing an exception when trying to access properties of the Response in ASP.NET. Uninstalling VS 2008 did not solve it, nor did reinstalling .NET 2.0 and VWD.

never mind, it is obviously obscure and I have confused the issue by wording it badly.
0
 
Bob LearnedCommented:
Yes, I saw that.  I also saw that VS2008 beta installed .NET 2.0 SP1, and I was trying to ask if you reinstalled .NET 2.0 SP1, not just the base version.

Bob
0
 
Solar_FlareAuthor Commented:
sorry, yes I did install 2.0 SP1.
0
 
Solar_FlareAuthor Commented:
thanks :)
0
All Courses

From novice to tech pro — start learning today.