1

我在本地 IIS 7 Web 服务器中托管了一个 WCF NET.TCP 服务。Silverlight 应用程序访问此服务。silverlight 应用程序嵌入在同一本地 Web 服务器上托管的另一个网站的 aspx 页面中。当我在本地计算机上访问该网站时一切正常,但是当我使用另一台计算机访问该网站时,silverlight 应用程序会引发如下异常:

System.ServiceModel.CommunicationObjectFaultedException [CommunicationObjectFaulted1]
Arguments: System.ServiceModel.Channels.ClientFramingDuplexSessionChannel
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.60831.0&File=System.ServiceModel.dll&Key=CommunicationObjectFaulted1

问题是什么?

4

1 回答 1

0

你在运行什么操作系统?

我问,如果web.config是只读的,Windows Azure 会导致这种情况。

编辑

作为尝试捕获它的一种方法,需要注意的是using初始化 WCF 服务的块。见这里

这表明有一个初始异常>(通常与配置有关)并且 using 块的 finally 部分,因为它试图关闭服务是抛出此异常时。

于 2011-11-18T08:09:32.090 回答