Tag: 服务引用

这个WCF错误是什么意思:“自定义工具警告:无法导入wsdl:portType”

我在我的解决scheme中创build了一个WCF服务库项目,并为此提供服务引用。 我使用类库中的服务,所以除了类库之外,还有我的WPF应用程序项目的引用。 服务设置简单 – 只有改变才能获得asynchronous服务function。 一切工作正常 – 直到我想更新我的服务参考。 它失败了,所以我最终回滚并重试,但即使这样也失败了! 因此 – 更新服务引用失败,不做任何更改。 为什么?! 我得到的错误是这样的: Custom tool error: Failed to generate code for the service reference 'MyServiceReference'. Please check other error and warning messages for details. 警告提供了更多信息: Custom tool warning: Cannot import wsdl:portType Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporter Error: […]