Re: System.Net.WebException: The request failed with HTTP status 4

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



{\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 }

















Relevant Pages

  • Re: ConnectComputer Conundrum
    ... Do you have option 015 in DHCP server, Scope options pointing to your local ... Microsoft SBS-MVP ... "Tim" schreef in bericht ... > Ethernet adapter Network Connection: ...
    (microsoft.public.windows.server.sbs)
  • Re: 3GB unter Windows 2003 Standard
    ... >> Enterprise um die 3GB für den Exchange zu aktivieren? ... > Hallo Tim, ... > Windows Server 2003 unterstützt /3GB und Microsoft supported den Einsatz ... > "Microsoft Exchange Server 2003 wird in einer Produktionsumgebung ...
    (microsoft.public.de.exchange)
  • SecurityFocus Microsoft Newsletter #49
    ... Subject: SecurityFocus Microsoft Newsletter #49 ... Microsoft Windows NNTP Denial of Service Vulnerability ... Microsoft IIS SSI Buffer Overrun Privelege Elevation Vulnerability ... Microsoft ISA Server H.323 Memory Leak Denial of Service... ...
    (Focus-Microsoft)
  • Re: AD management snap in cannot find DC (netdiag /v workstation)
    ... The name.local entries are used by my apache server to implement ... Attr: subschemaSubentry ... Owner of the binding path: ... Component Name: Client for Microsoft Networks ...
    (microsoft.public.windows.server.active_directory)
  • Re: IIS Start up errors
    ... provide the detailed steps to reinstall the IIS server in SBS 2003 server. ... For example, programs such as Microsoft ... In the Currently installed programs list, click Windows Small Business ...
    (microsoft.public.windows.server.sbs)