如何修复肥皂中的绑定失败?

Kri*_*son 7 .net c# soap

我重新加载了一个旧项目,并尝试运行它只是为了遇到绑定失败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,为什么它不是在Rebuild上创建的?是的,我已经尝试更新Web引用(这没有帮助).不,我不想升级到WCF肥皂服务.

小智 4

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