首页 新闻 赞助 找找看

System.Web.Service.Protocol.SoapException

0
悬赏园豆:100 [已关闭问题]

我使用Microsoft.Web.Service2 做了附件上传的webservice,默认网站下一切正常,可我把它做为默认网站的虚拟目录,客户端调用就出错

服务器无法处理请求。 ---> The value can not be null or an empty string.


  在 System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
  在 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
  在 testWebbWinUpload.localhost.WebbWinUpload.CreateUploadInstance(String filePrefix, String extension) 位置 D:\Roboth\ppppppppppppppppppppppppppproject\SinaEC.WebSvc\testWebbWinUpload\Web References\localhost\Reference.cs:行号 100
  在 testWebbWinUpload.Form1.button2_Click(Object sender, EventArgs e) 位置 D:\Roboth\ppppppppppppppppppppppppppproject\SinaEC.WebSvc\testWebbWinUpload\Form1.cs:行号 50
  在 System.Windows.Forms.Control.OnClick(EventArgs e)
  在 System.Windows.Forms.Button.OnClick(EventArgs e)
  在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
  在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
  在 System.Windows.Forms.Control.WndProc(Message& m)
  在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
  在 System.Windows.Forms.Button.WndProc(Message& m)
  在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

请各位大侠帮忙。

System.Web.Service.Protocol.SoapExcepti


roboth的主页 roboth | 初学一级 | 园豆:28
提问于:2010-04-17 10:32
< >
分享
其他回答(1)
0

The value can not be null or an empty string

这不是说了,让你检查代码中的值不能为Null或空。

路过秋天 | 园豆:4787 (老鸟四级) | 2010-04-27 11:45
0

检查代码中的值不能为Null或空,或者协议问题

寒月心若冰 | 园豆:205 (菜鸟二级) | 2010-04-27 20:01
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册