從昨天開始使用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