Re: System.Net.WebException: The request failed with HTTP status 4
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Mon, 16 Jan 2006 01:50:04 GMT
{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\lang2052\f0\fs20 Thanks for your response Tim,
\par
\par Sorry that I've missed your point on using apache server. Anyway, Glad that you've figured out the problem through configuring the .net application's proxy setting. For the proxy, we can also programmatically configure it for or webservice proxy( or HttpWebRequest component) through its Proxy property. e.g:
\par
\par MyMath.Math math = new MyMath.Math();
\par
\par IWebProxy proxyObject = new WebProxy("http://proxyserver:80", true);
\par math.Proxy = proxyObject;
\par
\par int total = math.Add(8, 5);
\par
\par Thanks,
\par
\par Steven Cheng
\par Microsoft Online Support
\par
\par Get Secure! www.microsoft.com/security
\par (This posting is provided "AS IS", with no warranties, and confers no rights.)
\par
\par
\par
\par
\par \pard\li720 --------------------
\par Thread-Topic: System.Net.WebException: The request failed with HTTP status 4
\par thread-index: AcYYalbeGWccHlLwTLeMFtU+51ygvg==
\par X-WBNR-Posting-Host: 192.76.82.90
\par From: =?Utf-8?B?VGltIFJleW5vbGRz?= <tim.reynolds@xxxxxxxxxxxxx>
\par References: <C8E91C5F-D07D-4C49-A497-0A98B3773A0C@xxxxxxxxxxxxx> <#Bvrvv8FGHA.2040@xxxxxxxxxxxxxxxxxxxx> <gw9VuRAGGHA.1236@xxxxxxxxxxxxxxxxxxxxx>
\par Subject: Re: System.Net.WebException: The request failed with HTTP status 4
\par Date: Fri, 13 Jan 2006 09:54:02 -0800
\par Lines: 98
\par Message-ID: <A3EBFF12-801D-4EDF-81CE-6220AD4C03FE@xxxxxxxxxxxxx>
\par MIME-Version: 1.0
\par Content-Type: text/plain;
\par \tab charset="Utf-8"
\par Content-Transfer-Encoding: 7bit
\par X-Newsreader: Microsoft CDO for Windows 2000
\par Content-Class: urn:content-classes:message
\par Importance: normal
\par Priority: normal
\par X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
\par Newsgroups: microsoft.public.dotnet.framework.webservices
\par NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
\par Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
\par Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.framework.webservices:13351
\par X-Tomcat-NG: microsoft.public.dotnet.framework.webservices
\par
\par Ok - SOmeone told me about the following which I put in my windows exe.config
\par file and I guess this basicallyi said don't use the default proxy settings
\par and this resolved the problem.
\par
\par <system.net>
\par <!-- don't use system default proxy -->
\par <defaultProxy>\tab
\par \tab <proxy usesystemdefault="false"/>\tab\tab
\par </defaultProxy>
\par </system.net>
\par
\par I am not sure if it uses any proxy now, nor how I could tell it to use proxy
\par for one app connection but not another, but those are other new
\par questions/issues. This post can be closed....
\par
\par
\par
\par "Steven Cheng[MSFT]" wrote:
\par
\par > Hi Tim,
\par >
\par > I think Martin's suggestion is reasonable since the webservice used to work
\par > correctly on dev box , so there should not contains problems in code logic.
\par > And network environment should be the first thing we can check. Also, you
\par > can check the IIS log on the server machine to see whether the request
\par > actually arrive the server...
\par >
\par > Thanks,
\par >
\par > Steven Cheng
\par > Microsoft Online Support
\par >
\par > Get Secure! www.microsoft.com/security
\par > (This posting is provided "AS IS", with no warranties, and confers no
\par > rights.)
\par >
\par >
\par > --------------------
\par > From: "Martin Kulov" <kulov@xxxxxxxxxxxxxxxx>
\par > References: <C8E91C5F-D07D-4C49-A497-0A98B3773A0C@xxxxxxxxxxxxx>
\par > Subject: Re: System.Net.WebException: The request failed with HTTP status
\par > 404:
\par > Date: Fri, 13 Jan 2006 01:00:05 +0200
\par > Lines: 33
\par > MIME-Version: 1.0
\par > Content-Type: text/plain;
\par > \tab format=flowed;
\par > \tab charset="Utf-8";
\par > \tab reply-type=original
\par > Content-Transfer-Encoding: 7bit
\par > X-Priority: 3
\par > X-MSMail-Priority: Normal
\par > X-Newsreader: Microsoft Outlook Express 6.00.3790.1830
\par > X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
\par > Message-ID: <#Bvrvv8FGHA.2040@xxxxxxxxxxxxxxxxxxxx>
\par > Newsgroups: microsoft.public.dotnet.framework.webservices
\par > NNTP-Posting-Host: vpn-pppoe-213-240-243-80.megalan.bg 213.240.243.80
\par > Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP14.phx.gbl
\par > Xref: TK2MSFTNGXA02.phx.gbl
\par > microsoft.public.dotnet.framework.webservices:13334
\par > X-Tomcat-NG: microsoft.public.dotnet.framework.webservices
\par >
\par > "Tim Reynolds" <tim.reynolds@xxxxxxxxxxxxx> wrote in message
\par > news:C8E91C5F-D07D-4C49-A497-0A98B3773A0C@xxxxxxxxxxxxxxxx
\par > > Our .Net application calls a web method of aplpication 2 that resides on
\par > > their Apache server. When I as a developer C#, Studios 2003, make the
\par > call
\par > > to
\par > > their web method from my desktop, I receive no exceptions - completes
\par > > fine.
\par > ...
\par > > When I deploy my project to the development server and call (using the
\par > > same
\par > > url) the same web method with the same data, I receive the following
\par > > exception:
\par > >
\par > > System.Net.WebException: The request failed with HTTP status 404: Not
\par > > Found.
\par > ...
\par >
\par > Hi Tim,
\par >
\par > may be your development server do not see the app2 server. Check if there
\par > is
\par > connectivity between them.
\par >
\par > Regards,
\par >
\par > --
\par > Martin Kulov
\par > http://www.codeattest.com/blogs/martin
\par >
\par > MCAD Charter Member
\par > MCSD.NET Early Achiever
\par > MCSD
\par >
\par >
\par >
\par \pard
\par
\par }
- References:
- Re: System.Net.WebException: The request failed with HTTP status 404:
- From: Martin Kulov
- Re: System.Net.WebException: The request failed with HTTP status 404:
- From: Steven Cheng[MSFT]
- Re: System.Net.WebException: The request failed with HTTP status 4
- From: Tim Reynolds
- Re: System.Net.WebException: The request failed with HTTP status 404:
- Prev by Date:
Re: Multiple asmx with same datatype causes multiple namespaces in vs2 - Next by Date:
Re: consuming a webservice from internet explorer - Previous by thread:
Re: System.Net.WebException: The request failed with HTTP status 4 - Next by thread:
How can i convert this function to web service? - Index(es):
Relevant Pages
|