wcf – Silverlight故障

wcf – Silverlight故障,第1张

概述我试图让WCF Silverlight故障按此工作: MSDN aricle 将SL故障添加到我的Web.config文件后,我收到以下警告: The element ‘behavior’ has invalid child element ‘silverlightFaults’. List of possible elements expected: ‘serviceAuthorization, 我试图让WCF Silverlight故障按此工作:
MSDN aricle

将SL故障添加到我的Web.config文件后,我收到以下警告:

The element ‘behavior’ has invalID child element ‘silverlightFaults’. List of possible elements expected: ‘serviceAuthorization,serviceCredentials,serviceMetadata,serviceSecurityAudit,serviceThrottling,dataContractSerializer,serviceDeBUG,serviceTimeouts,persistenceProvIDer,workflowRuntime’.

忽略警告不起作用,我的Silverlight应用程序无法添加WCF服务.

有任何想法吗?

解决方法 添加行为扩展时,类型规范必须在一行上.该部分不允许CRLF.

<extensions>  <behaviorExtensions>    <add name="silverlightFaults" type="SilverlightFaultBehavior,UtilitIEs,Version=1.0.0.0,Culture=neutral,PublicKeyToken=null" />  </behaviorExtensions></extensions>
总结

以上是内存溢出为你收集整理的wcf – Silverlight故障全部内容,希望文章能够帮你解决wcf – Silverlight故障所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/web/1004847.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-22
下一篇2022-05-22

发表评论

登录后才能评论

评论列表(0条)

    保存