【问题标题】:Webservices error for dev.virtualearth.net/webservices/geocodedev.virtualearth.net/webservices/geocode 的 Web 服务错误
【发布时间】:2010-03-29 21:28:43
【问题描述】:

我得到以下堆栈跟踪,不知道我在看什么以及如何调试和修复它:这是错误:

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 'GeocodeService'.
Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension: 
System.ServiceModel.Description.DataContractSerializerMessageContractImporter
Error: Could not load file or assembly 'System.Xml, Version=2.0.5.0, Culture=neutral, 
PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find 
the file specified.
XPath to Error Source: 
//wsdl:definitions[@targetNamespace='http//dev.virtualearth.net  
/webservices/v1/geocode/contracts']/wsdl:portType[@name='IGeocodeService']
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:
//dev.virtualearth.net/webservices/v1/geocode/contracts']  
/wsdl:portType[@name='IGeocodeService']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http:
//dev.virtualearth.net  
/webservices/v1/geocode']/wsdl:binding[@name='BasicHttpBinding_IGeocodeService']
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://dev.virtualearth.net
/webservices/v1/geocode']/wsdl:binding[@name='BasicHttpBinding_IGeocodeService']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://dev.virtualearth.net
/webservices/v1/geocode']/wsdl:service[@name='GeocodeService']
/wsdl:port[@name='BasicHttpBinding_IGeocodeService']
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:
//dev.virtualearth.net/webservices/v1/geocode/contracts'] 
/wsdl:portType[@name='IGeocodeService']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http:
//dev.virtualearth.net 
/webservices/v1/geocode']/wsdl:binding[@name='CustomBinding_IGeocodeService']
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://dev.virtualearth.net
/webservices/v1/geocode']/wsdl:binding[@name='CustomBinding_IGeocodeService']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://dev.virtualearth.net
/webservices/v1/geocode']/wsdl:service[@name='GeocodeService'] 
/wsdl:port[@name='CustomBinding_IGeocodeService']

【问题讨论】:

    标签: c# asp.net wcf web-services


    【解决方案1】:

    我在发布后立即发现了这个 linik,它似乎可以修复它,但我不知道为什么会发生错误。

    http://software-development-toolbox.blogspot.com/2009/02/creating-service-reference-failed-to.html

    【讨论】:

      猜你喜欢
      • 2014-02-26
      • 2011-01-09
      • 2014-01-08
      • 1970-01-01
      • 2010-10-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多