此WCF错误意味着什么:“自定义工具警告:无法导入wsdl:portType” [英] What does this WCF error mean: “Custom tool warning: Cannot import wsdl:portType”
本文介绍了此WCF错误意味着什么:“自定义工具警告:无法导入wsdl:portType”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
向aspmvc 4应用程序添加WCF服务引用时出错。
reference.cs文件没有在Web服务中定义的任何类或方法。
I am getting a error when adding a WCF service reference to aspmvc 4 application.
The reference.cs file is not having any classes or methods defined in the web service.
推荐答案
事实证明这是一个简单的问题。添加引用时,浏览到高级选项卡,然后取消选中在引用的程序集中重用类型复选框,然后添加服务引用。
This turned out to be a simple one. When adding a reference, browse to "Advanced" Tab and then uncheck the "Reuse types in referenced Assemblies" checkbox and then add the service reference.
这篇关于此WCF错误意味着什么:“自定义工具警告:无法导入wsdl:portType”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文