我有以下问题。我在本地 IIS 上托管 WCF 服务,并希望在我的 Silverlight 5 应用程序中从中获取数据。我使用 ASP.NET 托管 Silverlight 项目,但我一直收到通信异常。
顺便提一下,我没有创建启用 wcf silverlight 的服务。是这样吗?
我的 Silverlight .clientconfig:
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IService" maxBufferSize="2147483647"
maxReceivedMessageSize="2147483647">
<security mode="None" />
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:21016/Service.svc" binding="basicHttpBinding"
bindingConfiguration="BasicHttpBinding_IService" contract="ServiceReference.IService"
name="BasicHttpBinding_IService" />
</client>
</system.serviceModel>
我已经阅读了一些关于该异常的主题,但我没有发现任何有用的东西。
Tnx :)