Solved

.NET Web Service 405 Error When Using Proxy

Posted on 2011-02-21
5
756 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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

863 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

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now