问题描述
我试图从 Silverlight 应用程序访问网络服务,但我不断收到错误 ''
web.config 是为 webservice 设置的,如下所示。
<system.serviceModel>
<bindings>
<customBinding>
<binding name="CustomMapper">
<binaryMessageEncoding />
<httpTransport />
</binding>
</customBinding>
<webHttpBinding>
<binding name="LargeString" maxReceivedMessageSize="5000000">
<readerQuotas maxStringContentLength="2147483647" />
<security mode="None" />
</binding>
</webHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost/commonSVC/Common.svc/customBinding" binding="customBinding" bindingConfiguration="CustomMapper" contract="rptProxy.Common" name="CustomBinding_Common" />
</client>
<behaviors>
<serviceBehaviors>
<behavior name="behavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="CommonSVC.CommonAspNetAjaxBehavior">
<enableWebScript />
</behavior>
</endpointBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" minFreeMemoryPercentageToActivateService="1" />
<services>
<service name="CommonSVC.Common" behaviorConfiguration="behavior">
<endpoint address="" behaviorConfiguration="CommonSVC.CommonAspNetAjaxBehavior" binding="webHttpBinding" contract="CommonSVC.Common" bindingConfiguration="LargeString" />
<endpoint address="customBinding" bindingConfiguration="CustomMapper" binding="customBinding" contract="CommonSVC.Common" />
</service>
</services>
</system.serviceModel>
谁能看到我可能遗漏的问题?
预先感谢您的帮助。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)