积极答复者
Silverlight引用net.tcp出错

问题
-
我的电脑在引用wcf服务时出现"The uri prefix is not recoginzed",在这之前还是可以使用net.tcp的,别人的电脑引用也没有问题
1.wcf使用net.tcp双工通信的
2.使用Silverlight4.0
在运行出错了,错误如下
Could not connect to net.tcp://192.168.1.88:4503/MEX. The connection attempt lasted for a time span of 00:00:01.0781664. TCP error code 10013: 试图以其访问权限所禁止的方式访问套接字。. This could be due to attempting to access a service in a cross-domain way while the service is not configured for cross-domain access. You may need to contact the owner of the service to expose a sockets cross-domain policy over HTTP and host the service in the allowed sockets port range 4502-4534.
是不是我的开发环境出错了?
答案
-
可能是没有添加域服务策略文件及引用服务的配置文件没有配置
参考这个文章 讲的很详细http://blogs.msdn.com/b/silverlightws/archive/2010/04/04/some-known-wcf-issues-in-silverlight-4.aspx
Frank Xu Lei--谦卑若愚,好学若饥
专注于.NET平台下分布式应用系统开发和企业应用系统集成
Focus on Distributed Applications Development and EAI based on .NET
【老徐的网站】:http://www.frankxulei.com/
- 已标记为答案 Peter pi - MSFTModerator 2011年6月8日 1:32
-
Hi,
你可以参考下下面这个英文连接。
http://blogs.msdn.com/b/silverlightws/archive/2010/04/09/policy-file-for-nettcp.aspx
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework- 已标记为答案 Peter pi - MSFTModerator 2011年6月8日 1:32
全部回复
-
可能是没有添加域服务策略文件及引用服务的配置文件没有配置
参考这个文章 讲的很详细http://blogs.msdn.com/b/silverlightws/archive/2010/04/04/some-known-wcf-issues-in-silverlight-4.aspx
Frank Xu Lei--谦卑若愚,好学若饥
专注于.NET平台下分布式应用系统开发和企业应用系统集成
Focus on Distributed Applications Development and EAI based on .NET
【老徐的网站】:http://www.frankxulei.com/
- 已标记为答案 Peter pi - MSFTModerator 2011年6月8日 1:32
-
Hi,
你可以参考下下面这个英文连接。
http://blogs.msdn.com/b/silverlightws/archive/2010/04/09/policy-file-for-nettcp.aspx
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework- 已标记为答案 Peter pi - MSFTModerator 2011年6月8日 1:32