Solved

.NET Web Service 405 Error When Using Proxy

Posted on 2011-02-21
5
762 Views
Last Modified: 2012-05-11
I have a client WinForms application consuming a .NET Web Service without an issues until a proxy is introduced. Once the communication goes through any proxy, IIS returns a 405: Method Not Allowed error on all method calls. I have stripped out anything that might be overtly causing issues and am running everything over a standard HTTP (i.e. NOT HTTPS) protocol. The proxy itself works just fine for standard browsing so there must be something on the server side that is blocking this call.

Any ideas?
0
Comment
Question by:ktola
  • 4
5 Comments
 
LVL 16

Expert Comment

by:Kalpesh Chhatrala
ID: 34944556
0
 

Author Comment

by:ktola
ID: 34945393
That is not the issue
0
 

Author Comment

by:ktola
ID: 34948025
I have change everything to a WCF service that works perfectly fine unless I attempt to use a proxy in the communication stream such as:

AnonClient anonService = new AnonClient();
var bindHttp = anonService.Endpoint.Binding as BasicHttpBinding;
bindHttp.ProxyAddress = new Uri("http://149.169.227.131:3127");
bindHttp.BypassProxyOnLocal = false;
bindHttp.UseDefaultWebProxy = false;

As soon as the proxy is introduced - and it can be any proxy - IIS immediately rejects the request with a 405 error.  There is no authentication occurring at the IIS level - I take of everything in code - anonymous access is enabled - so what is wrong with my IIS configuration?
0
 

Accepted Solution

by:
ktola earned 0 total points
ID: 35075526
As it turns out, the proxy servers tend to block web service traffic and thus I had to come up with an entirely new solution to overcome these issues.
0
 

Author Closing Comment

by:ktola
ID: 35120723
Received no help but figured it out on my own
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question