Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

.NET Web Service 405 Error When Using Proxy

Posted on 2011-02-21
5
Medium Priority
?
780 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
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…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

715 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