| 发表于:2008-01-05 09:33:50 楼主 |
when i write a c# windows application try to call a web service which is running on my local machine. in visual studio 2005, in solution explorer, i right click reference --> add web reference.... i input url at text box like this" http://localhost:82/cuahsi_1_0.asmx", then i hit go button, i got following error message: there was an error downloading 'http://localhost:82/cuahsi_1_0.asmx'. unable to connect to the remote server an attempt was made to access a socket in a way forbidden by its access permissions lots of you may got the same problem as mine, i got the solution to this by replacing "localhost" by my machine name. the correct url should be like this ( ling is my machine name, you should replace it by your machine name) http://ling:82/cuahsi_1_0.asmx success!!! |
|
|
|
|