Re: System.web.exception The request failed with HTTP status 404



"Sal" <Sal@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:83EFBD91-AACC-4588-80A0-BCCB4140B52D@xxxxxxxxxxxxxxxx


"Sal" wrote:

<I MOVED THIS POST TO ITS OWN THREAD. ORIGINAL POST FOUND HERE:
http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.dotnet.framework.webservices&mid=22d09e8e-4390-46b2-b266-ff37405d68ba >

I've been searching around the forums for answers to this but not finding
anything substantial. My env is XP Pro / .NET 2.0. The web service in
question is written in Java on a WebLogic box. I can open the wsdl in IE and
see/invoke the methods exposed to me on the box in question. But when I try
to run code that uses the same service I get the error above. I have
another box (Win2003/.NET 2) which runs the same code fine. I can't help but
think it is a configuration problem on my first XP machine.

I know this is kind of general but can anyone provide a quick checklist to
start? Any feedback appreciated.

Thanks in advance.

Sal
------------------
<THIS IS THE FIRST REPLY>

Sal, maybe you should start this discussion with a new post. Those of us
using a newsreader don't have access to the original thread from 2006.

Here are a few blind suggestions:

It's kind of obvious, but if you're getting a 404 status, it is coming from
a web server or other device running the HTTP protocol (a proxy server could
be a culprit). This means that the question becomes "what URL did I request,
and why does the server not know how to find it?" To answer this question,
you'll want to look at the network traffic with your favorite tool (for
instance, Microsoft Network Monitor, or ProxyTrace from
http://www.pocketsoap.com).

You're actually in a good position to solve this problem. Take a look at the
request from the server it works on, and compare it to the server where it
fails. Note that the only interesting part of the request at this point is
the request headers. The body of the request is probably not causing a
"resource not found" error.

You're in luck! This error is happening at the very beginning of the
conversation between client and server. It doesn't even have anything to do
with the code in the web service!

--
John Saunders [MVP]


Ok that helps. So since I'm in corporate America my IE browser was setup to
talk to a proxy server. I simply disabled the auto config script usage and
the usage of the proxy server through the checkboxes in Tool | Internet
Options | Lan Settings | Connections . Then I cleared cache retried and it
worked. I'll continue to monitor it but seems like I'm in good shape.

I'm glad that worked.

Keep in mind that you can set up your client to use the necessary proxy server. Take a look at the Proxy property and the other properties of the HttpWebClientProtocol class that your proxy classes derive from (http://msdn2.microsoft.com/en-us/library/system.web.services.protocols.httpwebclientprotocol_properties.aspx).
--
John Saunders [MVP]

.



Relevant Pages

  • Re: Asynchronous Web Service Call
    ... I think I understand your request so here goes.... ... How is the request handled from a consumer perpective? ... stage later when the web service process is complete, ... The background of my question adresses server to ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: HTTP status 405: Method not allowed
    ... Try tracing the request at the web service. ... the server itself is not properly configured? ... Without the ASPNET user, I tested this server by running the simple ...
    (microsoft.public.dotnet.framework.webservices)
  • [REVS] NTLM HTTP Authentication is Insecure By Design
    ... in front of a web server, and that proxy server shares a single TCP ... These are attacks that make use of non-RFC HTTP requests (HTTP Request ... the authentication is associated with the ...
    (Securiteam)
  • RE: The underlying connection was closed: An unexpected error occurred on a receive
    ... down thru the thread tells me that you know your web service logic is ... the server timeout logic does what it is designed to do ... Each request is allocated to ... you can log the batch and relate it to the caller assigned ID. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: File Download
    ... One method you could use is to create as Web Service on the server hosting ... Using SAOP you can then connect to your file server and request the file. ... > I have a web application that allows users to download files. ...
    (microsoft.public.dotnet.framework.aspnet)

Quantcast