2010-04-06 72 views
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。

回答

0

您是否正在运行Skype?似乎某物已经在使用该网站的端口,请尝试在网络浏览器中浏览该网站以确认。

+0

托管此网站的Web服务器是专门用于托管此网站的虚拟机。 (没有网络电话)。上面的错误信息是当我尝试浏览到该网站时得到的。 (谢谢你的想法) – Vaccano 2010-04-06 16:26:25