Thanks for your response Tim,
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:
MyMath.Math math = new MyMath.Math();
IWebProxy proxyObject = new WebProxy("http://proxyserver:80", true);
math.Proxy = proxyObject;
int total = math.Add(8, 5);
Thanks,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
Thread-Topic: System.Net.WebException: The request failed with HTTP status 4
thread-index: AcYYalbeGWccHlLwTLeMFtU+51ygvg==
X-WBNR-Posting-Host: 192.76.82.90
From: =?Utf-8?B?VGltIFJleW5vbGRz?= <ti**********@online.nospam>
References: <C8**********************************@microsoft.co m>
<#B**************@TK2MSFTNGP14.phx.gbl>
<gw**************@TK2MSFTNGXA02.phx.gbl>
Subject: Re: System.Net.WebException: The request failed with HTTP status 4
Date: Fri, 13 Jan 2006 09:54:02 -0800
Lines: 98
Message-ID: <A3**********************************@microsoft.co m>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSF TNGXA03.phx.gbl
microsoft.public.dotnet.framework.webservices:1335 1
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices
Ok - SOmeone told me about the following which I put in my windows
exe.config
file and I guess this basicallyi said don't use the default proxy settings
and this resolved the problem.
<system.net>
<!-- don't use system default proxy -->
<defaultProxy>
<proxy usesystemdefault="false"/>
</defaultProxy>
</system.net>
I am not sure if it uses any proxy now, nor how I could tell it to use
proxy
for one app connection but not another, but those are other new
questions/issues. This post can be closed....
"Steven Cheng[MSFT]" wrote:
Hi Tim,
I think Martin's suggestion is reasonable since the webservice used to
work correctly on dev box , so there should not contains problems in code
logic. And network environment should be the first thing we can check. Also,
you can check the IIS log on the server machine to see whether the request
actually arrive the server...
Thanks,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
From: "Martin Kulov" <ku***@bezbokluk.abv.bg>
References: <C8**********************************@microsoft.co m>
Subject: Re: System.Net.WebException: The request failed with HTTP status
404:
Date: Fri, 13 Jan 2006 01:00:05 +0200
Lines: 33
MIME-Version: 1.0
Content-Type: text/plain;
format=flowed;
charset="Utf-8";
reply-type=original
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.1830
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
Message-ID: <#B**************@TK2MSFTNGP14.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: vpn-pppoe-213-240-243-80.megalan.bg 213.240.243.80
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP14.phx.gbl
Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.webservices:1333 4
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices
"Tim Reynolds" <ti**********@online.nospam> wrote in message
news:C8**********************************@microsof t.com... Our .Net application calls a web method of aplpication 2 that resides on
their Apache server. When I as a developer C#, Studios 2003, make the
call to
their web method from my desktop, I receive no exceptions - completes
fine.
... When I deploy my project to the development server and call (using the
same
url) the same web method with the same data, I receive the following
exception:
System.Net.WebException: The request failed with HTTP status 404: Not
Found.
...
Hi Tim,
may be your development server do not see the app2 server. Check if there
is
connectivity between them.
Regards,
--
Martin Kulov
http://www.codeattest.com/blogs/martin
MCAD Charter Member
MCSD.NET Early Achiever
MCSD