Service Reference Error: Failed to generate code for the service reference

后端 未结 13 1903
囚心锁ツ
囚心锁ツ 2020-11-30 19:07

I have a Windows Service Solution and am trying to add a service reference to a Hermes(Opensource ebms message server) Web Service in VS2010.

I can find the Web Serv

13条回答
  •  盖世英雄少女心
    2020-11-30 19:24

    If you want to correct this without uncheking the assembly reuse checkbox this is what worked for me:

    • Remove referenced assembly that you want to re-use
    • Delete all the bin folder of the project
    • Update service reference
      • Keep "Reuse types in specified referenced assemblies"
    • Add reference to assembly again to fix the errors
    • Update service reference again

提交回复
热议问题