Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have created a web service and it is working correctly when hosted in Local system
But when I hosted the same application in an IIS server, its working weird.
There is a functionality to download file from client machine to server, but the below code returning the "machine actively refused the system 127.0.0.1...." exception


Dim webReq As System.Net.WebRequest = System.Net.WebRequest.Create(Url)
Dim response As HttpWebResponse = DirectCast(webReq.GetResponse(), HttpWebResponse)
response.Close()
Posted

If it works on the local machine, but not remotely, then you have an issue in your code that is masked when the server and client run on the same machine. Hard to know the details, without code. Your web service does not attempt to access the file system, does it ?
 
Share this answer
 
Comments
dotdeveloper2008 6-Jul-11 1:22am    
Thanks for the suggestions
But I have checked the error log and traced to "Retrieving the COM class factory for component with CLSID failed due to the following error: 80040154."
So I think this may be due to not registering all the DLLs in server.
Correct me if I am wrong
This might be because of:

1. Web Reference URL in config file.
2. Port (I think the port is blocked). I think you should try to PING and telnet on the deployed IP and port.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900