What does this WCF error mean: “Custom tool warning: Cannot import wsdl:portType”

后端 未结 13 1833
难免孤独
难免孤独 2020-11-29 17:38

I created a WCF service library project in my solution, and have service references to this. I use the services from a class library, so I have references from my WPF applic

13条回答
  •  伪装坚强ぢ
    2020-11-29 18:31

    I experienced the same error. I struggled for almost a day trying to find out what was going wrong. The clue for me were the warnings that VS was throwing. It was trying to do some kind of mapping to Yahoo.Yui.Compressor.dll, a library I had added and removed (because I decided not to use it) a couple of days before. It was shocking because the library wasn't there, but somehow it was trying to reference it.

    Finally, I restore this dll from the Trash, and then I could update my service reference successfully.

提交回复
热议问题