您的位置:程序门 -> .net技术 -> web services



c# windows application call web service error "unable to connect to the remote server"


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


c# windows application call web service error "unable to connect to the remote server"
发表于: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!!!

发表于:2008-01-14 05:55:071楼 得分:0
英文。。


快速检索

最新资讯
热门点击