SilverLight调用WCF”远程服务器返回了错误: NotFound”的排解
来源:互联网 发布:动漫软件下载排行榜 编辑:程序博客网 时间:2024/05/08 08:08
远程服务器返回了错误: NotFound,该错误一般为WCF调用不成功,SL的错误类型是CommunicationException,但是具体的错误类型及信息不完整,通过以下方法,可以使错误信息更加完成。
在WCF服务的类中加上
[ServiceBehavior(IncludeExceptionDetailInFaults = true)]
然后在调用此服务的silverlight的初始化方法中加上:
bool registerResult = WebRequest.RegisterPrefix("http://", WebRequestCreator.ClientHttp);
bool httpsResult = WebRequest.RegisterPrefix("https://", WebRequestCreator.ClientHttp);
bool httpsResult = WebRequest.RegisterPrefix("https://", WebRequestCreator.ClientHttp);
- SilverLight调用WCF”远程服务器返回了错误: NotFound”的排解
- Silverlight 调用WCF 远程服务器返回了错误: NotFound
- Silverlight连接WCF--错误"远程服务器返回了错误NotFound”
- WCF 远程服务器返回了错误: NotFound
- WCF中远程服务器返回了一个错误: NotFound. 错误的解决思路
- 远程服务器返回了错误 :NotFound
- 远程服务器返回了错误: NotFound。 (大全)
- 有时会报远程服务器返回了错误: NotFound
- Silverlight + WCF错误“The remote server returned an error: NotFound.”的解决方法
- Silverlight + WCF错误“The remote server returned an error: NotFound.”的解决方法
- Silverlight + WCF错误“The remote server returned an error: NotFound.”的解决方法
- Silverlight 调用WCF常见错误
- [Silverlight] 一个易犯的错误:关于调用 WCF 服务
- silverlight 遇到对 COM 组件的调用返回了错误 HRESULT E_FAIL
- Silverlight 调用 WCF 如何处理错误
- 调用部署在本机IIS服务器的WCF服务并返回数据DataTable,一直报错:远程主机强迫关闭了一个现有的连接,但是服务访问正常
- httppost 远程服务器返回错误: (400) 错误的请求错误
- WCF RIA Service + IIS 6: NotFound 错误
- ArcGIS 9.3垂直文字设置
- 不容错过的UMPC/MID/电子书方案
- WinForm中给DataGridView添加 自动编号
- 意外的 set names *
- jdbc类
- SilverLight调用WCF”远程服务器返回了错误: NotFound”的排解
- 中小IT企业如何作战略思考和战略规划
- Gridview中的内容导出到Excel.
- 遍历文件夹里面的文件,并绑定到dropdownlist
- CVS完全手册(转)
- Dimine三维数字化矿业软件
- 内存没有初始化和内存越界的后果
- ASP.NET Web Service协议相关
- Ajax 复杂数据类型使用基础