gpt4 book ai didi

wcf - Visual Studio 2012 错误 Reference.svcmap 抛出错误

转载 作者:行者123 更新时间:2023-12-04 08:57:01 28 4
gpt4 key购买 nike

从昨天开始使用 Visual Studio 2012 RC,我们有一个 WCF 解决方案。每当我尝试在另一个解决方案中使用“添加/删除引用”对话框时,添加服务后都会出现以下错误。

Error 1 Reference.svcmap: Failed to generate code for the service reference 'DPService'. Cannot import wsdl:portType Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporter Error: Type 'WebSupergoo.ABCpdf8.Objects.Bookmark' is a recursive collection data contract which is not supported. Consider modifying the definition of collection 'WebSupergoo.ABCpdf8.Objects.Bookmark' to remove references to itself. XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:portType[@name='IGQDynamicPackaging'] Cannot import wsdl:binding Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on. XPath to wsdl:portType: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:portType[@name='IGQDynamicPackaging'] XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:binding[@name='WSHttpContextBinding_IGQDynamicPackaging'] Cannot import wsdl:port Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on. XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:binding[@name='WSHttpContextBinding_IGQDynamicPackaging'] XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:service[@name='GQService']/wsdl:port[@name='WSHttpContextBinding_IGQDynamicPackaging'] App_WebReferences/DPService/



请注意:当我使用 VS 2010 时,上述服务工作正常。供您引用,我们正在使用“重用引用程序集中的类型”并选中“重用所有引用程序集中的类型”选项。

相同的设置在 VS 2010 中工作正常,我们可以添加引用 .但是现在,安装 VS 2012 RC 后,我无法为 VS 2010 和 VS2012 添加引用。任何解决方案或解决方法。

我只想回滚并想使用VS2010,“添加服务”现在在VS 2010中给出了相同的引用错误。

最佳答案

我有一个类似的问题,我取消选中“配置服务引用”对话框中的“在引用的程序集中重用类型”复选框。

1) 右键单击​​服务引用
2) 选择配置服务引用
3)取消选中“在引用的程序集中重用类型”

我不确定这样做的所有后果,但它让我能够再次使用引用。

关于wcf - Visual Studio 2012 错误 Reference.svcmap 抛出错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11112960/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com