Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

.NET Web Service 405 Error When Using Proxy

Posted on 2011-02-21
5
Medium Priority
?
794 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Integration Management Part 2
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

916 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