gpt4 book ai didi

c# - 无法将 WCF 行为扩展添加到端点行为

转载 作者:太空宇宙 更新时间:2023-11-03 11:38:30 24 4
gpt4 key购买 nike

<system.serviceModel>
<extensions>
<behaviorExtensions>
<add name="WSDLFlatteningExtension" type="Thinktecture.ServiceModel.Extensions.Description,Thinktecture.ServiceModel.Extensions.Description,Version=1.0.0.0,Culture=Neutral,PublicKeyToken=f0de9a190a6d23d1"/>
</behaviorExtensions>
</extensions>
<behaviors>
<endpointBehaviors>
<behavior name="WSDLFlatteningBehavior">
<WSDLFlatteningExtension />
</behavior>
</endpointBehaviors>
</behaviors>
</system.serviceModel>

<WSDLFlatteningExtension />在我的 web.config 中无法识别上面的行。在运行时抛出错误。我已将 dll 放在 C:\windows\Assembly 和 C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE 中,但似乎没有任何效果。

最佳答案

假设错误是 AssemblyNotFoundException,那么您还可以尝试将 DependentAssembly 引用添加到您的配置文件,以便框架可以解析类型中指定的 AssemblyName。

关于c# - 无法将 WCF 行为扩展添加到端点行为,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5505593/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com