.NET Framework Bookmark and Share   
 index > Network Class Library (System.Net) > This operation requires IIS integrated pipeline mode
 

This operation requires IIS integrated pipeline mode

I have recently started receiving an Exception for one of my web apps.

The exception is:"The remote server returned an error: (401) Unauthorized.".

It seems to be caused by the"request.GetResponse()" returning "This operation requires IIS integrated pipeline mode."

Everything I have read on google talks about IIS 7 and Headers. I am not accessing the headers at all. I am just creating a request and getting the reponse. This code has worked for several years. I think a .Net upgrade may have caused this problem to appear, but (long story) I can't UNDO the .Net instatllation (due to space issues on the server the Uninstall files were removed...sigh...). So, I am left with fixing this problem.


I have narrowed my code to (simply!) the following. The URL does work (I have repalced my AppId obviously for public view). Whenever the GetResponse() is called that is when the Exception is thrown.

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click

Try
Dim YahooAPI As String = http://api.local.yahoo.com/MapsService/V1/geocode?appid=MyAppID&zip=37090

Dim
request As HttpWebRequest = WebRequest.Create(YahooAPI)
Dim response As HttpWebResponse
response = request.GetResponse()

Catch ex As Exception
Dim exceptions As String
End Try

End
Sub

  • Moved bynobugzMVPThursday, July 30, 2009 1:38 AM (From:Common Language Runtime)
  •  
ShayneJ

No ideas? Anyone?
ShayneJ
The code looks good.

Did you try to search the web, say
http://www.bing.com/search?q=This+operation+requires+IIS+integrated+pipeline+mode

I don't have a slightest idea what integrated pipeline mode mean, but found several articles on the first page of search results.
Oleksii Prokopchuk [NCL]
Could you try to set the HttpWebRequest.Pipelined to false before calling the GetResponse method? http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.pipelined(classic).aspx

By default this property is true and HttpWebRequest will try to pipelline your requests.

Also, the 401 that the server is sending you back means that you require authentication (are you missing setting the Credentials property in the HttpWebRequest instance?)

I hope this helps you.

Thanks
Reymarx Gereda [MSFT]
Reymarx Gereda

You can use google to search for other answers

Custom Search

More Threads

• SMTP sending failure on windows service
• C# FTP Connection pooling using FTPWebResponse?
• tcp listening question
• How to assign Base64 Encoding method of the MIME header in MailMessage class
• Ftpwebrequest.EndGETREQUESTSTREAM.Close() hangs and doesnot responds
• Rate limitation on reception of UDP messages
• SMTP Host Credentials from web.config
• NetworkStream.BeginWrite - very slow!?!
• web client question/problem
• HttpWebRequest and Transfer-Encoding: chunked problem