我已经尝试插入web.config,但是我收到以下错误:
[InvalIDOperationException]: The
contract name Mynamespace.MyService
Could not be found in the List of
contracts implemented by the service
Mynamespace.MyService
web.config中
<system.serviceModel> <bindings> <customBinding> <binding name="CustomBinaryhttpBinding"> <binaryMessageEnCoding /> <httpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" /> </binding> </customBinding> </bindings> <services> <service name="Mynamespace.MyService"> <endpoint address="" binding="wshttpBinding" contract="Mynamespace.MyService" /> <endpoint address="/binary" binding="customBinding" bindingConfiguration="CustomBinaryhttpBinding" contract="Mynamespace.MyService" /> </service> </services> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /></system.serviceModel>解决方法 我们遇到了类似的问题 – 我们希望使用WCF-RIA服务调用 *** 作将Silverlight客户端的大位图发送到服务器.
Web.config中的以下更改为我们工作:
<httpRuntime requestValIDationMode="2.0" maxRequestLength="6225920"/>
见How to configure Parameter/Message length for WCF-RIA-Service operation
总结以上是内存溢出为你收集整理的silverlight-4.0 – 自定义WCF RIA服务端点全部内容,希望文章能够帮你解决silverlight-4.0 – 自定义WCF RIA服务端点所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)