Solved

.NET Web Service 405 Error When Using Proxy

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
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.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 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

15 Experts available now in Live!

Get 1:1 Help Now