如何解决在肥皂绑定失败? [英] How do I fix a Binding Failure in Soap?
问题描述
我重新加载一个旧的项目,并试图只运行它碰到绑定失败MDA助理:
I reloaded an old project, and tried to run it only to run into the Binding Failure MDA Assistant:
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。这工作,但我会preFER来解决根本问题(SoapTest.XmlSerializers.dll在bin \ Debug目录不是)。我该如何解决这个问题?是什么造成了SoapTest.XmlSerializers.dll,为什么它没有被上创建一个重建?是的,我曾尝试更新Web引用(这并没有帮助)。不,我不希望升级到WCF SOAP服务。
After googling this, the only solution I could find was to turn off the MDA. This works, but I would prefer to solve the underlying problem (SoapTest.XmlSerializers.dll not being in the bin\Debug directory). How can I fix this? What creates the SoapTest.XmlSerializers.dll, and why is it not being created on a Rebuild? Yes, I have tried updating the Web Reference (this doesn't help). No I don't want to upgrade to WCF Soap Services.
推荐答案
其实,是的,我去了倾向窗口,并设置生成序列化程序集到上的选项,通过这个你保证每次构建项目 , 我想,当你编辑的类库,你所引用,而无需重新构建它
actually yes , i went to the propensities window and set the option of "Generate serialization assembly" to "on" , by this you insure every time you build the project , i guess that error happens when you edit the assmbly info of the class library you are referencing without re building it
这篇关于如何解决在肥皂绑定失败?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!