Visual Studio 2012 错误 Reference.svcmap 抛出错误 [英] Visual Studio 2012 Error Reference.svcmap throwing Error

查看:27
本文介绍了Visual Studio 2012 错误 Reference.svcmap 抛出错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Started using Visual Studio 2012 RC since yesterday, We have one WCF solution. Whenever i try to use the "add/remove reference" dialog in another solution, I get below error after adding the service.

错误 1 ​​Reference.svcmap:无法为服务生成代码参考DPService".无法导入 wsdl:portType 详细信息:An运行 WSDL 导入扩展时抛出异常:System.ServiceModel.Description.DataContractSerializerMessageContractImporter错误:类型WebSupergoo.ABCpdf8.Objects.Bookmark"是递归的不支持的收集数据合同.考虑修改集合 'WebSupergoo.ABCpdf8.Objects.Bookmark' 的定义到删除对自身的引用.错误源的 XPath://wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:portType[@name='IGQDynamicPackaging']无法导入 wsdl:binding Detail: 导入 a 时出错wsdl:binding 所依赖的 wsdl:portType.XPath 到wsdl:端口类型://wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:portType[@name='IGQDynamicPackaging']错误源的 XPath://wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:binding[@name='WSHttpContextBinding_IGQDynamicPackaging']无法导入 wsdl:port 详细信息:导入 a 时出错wsdl:binding 是 wsdl:port 所依赖的.XPath 到wsdl:绑定://wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:binding[@name='WSHttpContextBinding_IGQDynamicPackaging']错误源的 XPath://wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:service[@name='GQService']/wsdl:port[@name='WSHttpContextBinding_IGQDynamicPackaging'] App_WebReferences/DPService/

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 时,上述服务工作正常.供您参考,我们正在使用在引用的程序集中重用类型"并选中在所有引用的程序集中重用类型"选项.

Please note that : The said service was working properly when i used VS 2010. For your reference, We are using "Reuse types in referenced assemblies " turned on and "reuse types in all referenced assemblies" option checked.

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

The same settings was working ok with VS 2010 and we can add reference . But now, After installing VS 2012 RC , I can't able to add the reference for both of the VS 2010 and VS2012. Any soluton or work around for this.

我只是想回滚,想用VS2010,现在添加服务"在VS 2010中给出同样的引用错误.

I just want to rollback and want to use VS2010, "add service " gives the same reference error in VS 2010 now.

推荐答案

卸载vs 2012,vs 2010会给你未知错误",一个小错误提示,修复vs 2010(重新安装),然后好的!

Uninstall vs 2012, vs 2010 will give you "Unknown error", a small error message, repair vs 2010 (re-install it), and it will be OK!

这篇关于Visual Studio 2012 错误 Reference.svcmap 抛出错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆