gpt4 book ai didi

c# - 如何修复 Soap 中的绑定(bind)失败?

转载 作者:太空狗 更新时间:2023-10-29 20:29:41 25 4
gpt4 key购买 nike

我重新加载了一个旧项目,并试图运行它只是遇到了绑定(bind)失败 MDA 助手:

BindingFailure was detected Message: The assembly with display name 'SoapTest.XmlSerializers' failed to load in the'LoadFrom' binding context of the AppDomain with ID 1. The cause of the failure was: System.IO.FileNotFoundException: Could not load file or assembly 'SoapTest.XmlSerializers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

谷歌搜索后,我能找到的唯一解决方案是关闭 MDA。这可行,但我更愿意解决潜在的问题(SoapTest.XmlSerializers.dll 不在 bin\Debug 目录中)。我怎样才能解决这个问题?是什么创建了 SoapTest.XmlSerializers.dll,为什么不在重建时创建它?是的,我已经尝试更新 Web Reference(这没有帮助)。不,我不想升级到 WCF Soap 服务。

最佳答案

实际上是的,我去了倾向窗口并将“生成序列化程序集”的选项设置为“打开”,这样你就可以确保每次构建项目时,我想当你编辑你正在引用的类库的装配信息而不重新构建它时会发生错误

关于c# - 如何修复 Soap 中的绑定(bind)失败?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/234515/

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