0
我有我的ASP.NET應用程序使用的WCF Web服務。它在一段時間內工作良好。卡住ASP.NET/WCF WSDL解析錯誤
我剛剛添加了Dev Express Grid(以及Dev Express DLL)和一個使用它們的新頁面,現在我正在解析WSDL上的錯誤。
但奇怪的是,它的工作原理在我的機器上罰款但Web服務器計算機上失敗。 (兩者都連接到同一Web服務的WSDL)
以下是錯誤消息我得到:
Server Error in '/MyWebAppWebDev' Application. -------------------------------------------------------------------------------- Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Reference.svcmap: Failed to generate code for the service reference 'MyWebAppService'. Cannot import wsdl:portType Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporter Error: Referenced type 'WebClientApp.MyWebAppService.ReferenceUpdatesDataContract, WebClientApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' with data contract name 'ReferenceUpdatesDataContract' in namespace 'http://schemas.datacontract.org/2004/07/MyWebAppServiceLibrary.DataContracts' cannot be used since it does not match imported DataContract. Need to exclude this type from referenced types. XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:portType[@name='IMyWebAppReferenceDataServiceLib'] 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='IMyWebAppReferenceDataServiceLib'] XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:binding[@name='MyWebAppServicesDefaultEndpoint'] 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='MyWebAppServicesDefaultEndpoint'] XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:service[@name='MyWebAppReferenceDataServiceLib']/wsdl:port[@name='MyWebAppServicesDefaultEndpoint'] Source Error: [No relevant source lines] Source File: /MyWebAppWebDev/App_WebReferences/MyWebAppService/ Line: 1
我徹底難倒了這一點。我檢查了我的web.config端點地址,並且發現了(並且顯然不在上面的錯誤消息中)。
任何想法都會受到歡迎。
事情我已經嘗試:
- 給予權限到C:\ WINDOWS \ TEMP來到我的網站的用戶名
- 給予權限到C:\ WINDOWS \ TEMP到我的應用程序池的用戶名
- 檢查以查看我的數據合同中沒有一個是通用的,並且其中包含IsReference = true。
託管此網站的Web服務器是專門用於託管此網站的虛擬機。 (沒有網絡電話)。上面的錯誤信息是當我嘗試瀏覽到該網站時得到的。 (謝謝你的想法) – Vaccano 2010-04-06 16:26:25