从昨天开始使用Visual Studio 2012 RC,我们有一个WCF解决方案。每当我尝试在另一个解决方案中使用“添加/删除引用”对话框时,添加该服务后,我会收到以下错误。Visual Studio 2012错误Reference.svcmap丢失错误
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中给出了相同的参考错误。
我有同样的问题,任何更新? –
我正在卸载VS 2012,并将卸载.net 4.5,你有没有试图做到这一点?它有用吗? –
嗨MSS,我们还没有尝试卸载。卸载后你有任何成功吗?感谢您对此的投入。 – amaz