Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > "The request failed with HTTP status 404: Not Found."
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 5th May 05:47
External User
 
Posts: 1
Default "The request failed with HTTP status 404: Not Found."



Hi,

I'm trying to access a webservice from internet through my C# .NET
application.
First i got a proxy 407 error and i solved that by assigning some proxy
address used in my company network.
Now I got "The request failed with HTTP status 404: Not Found." error. I
tried invoking the service from the IE and its working fine.
Some people told me that the default port 80 might be closed by the network
administrator and we need to open that. I dont know whether it solves my
problem or not. Can i get help on how to solve this problem or how to open
the port from code, if this is the solution?
--
With Regards,
Subhash.
  Reply With Quote


 


2 5th May 05:50
brian lampe
External User
 
Posts: 1
Default "The request failed with HTTP status 404: Not Found."



If your service is using a port other than 80, you can specify it in
the service instantiation's Url property:

http://msdn2.microsoft.com/en-us/library/ms153652.aspx

From this example,

ReportingService2005 rs = new ReportingService2005();
rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
// Set the base Web service URL of the source server
rs.Url = "http://mySourceServer/reportserver/
reportservice.asmx";

Add your port after the server name like this:

rs.Url = "http://mySourceServer:81/reportserver/
reportservice.asmx";

Brian
  Reply With Quote


 


Reply


Thread Tools
Display Modes




666