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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

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
ukwebguyCommented:
I had this problem and fixed it by changing

 Response.Headers.Add

to

Response.AddHeaders or Response.AddHeader

UKWebGuy
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Solar_FlareAuthor Commented:
thanks :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.