2011-05-25 127 views
1

WCF服務中的一些方法返回實體框架中的實體。由於該警告,我無法在Windows Phone 7應用程序中添加Web Service參考:WCF服務+實體框架:如何發送實體?

Custom tool warning: Cannot import wsdl:portType Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporter Error: Could not load type 'System.Runtime.Serialization.DataContractSet' from assembly 'System.Runtime.Serialization, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'. XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:portType[@name='IBarnGameServiceNEW'] D:\MGameWindowsPhone7\Service References\ServiceReference3\Reference.svcmap

是什麼原因?

回答

0

運行不在管理員帳戶下的Visual Studio。這對我有幫助。