毕业论文开发语言企业开发JAVA技术.NET技术WEB开发Linux/Unix数据库技术Windows平台移动平台嵌入式论文范文英语论文
您现在的位置: 毕业论文 >> 移动平台 >> 正文

Failed to generate code for the service reference 'myTerraService'

更新时间:2012-5-24:  来源:毕业论文

在做Location Service时遇到一个问题,就是添加一个Service Reference(我添加的是http:_//msrmaps_.com/TerraService2.asmx,大家应该都熟悉,不会有什么问题)后,出现5个警告和一个错误,它们分别是:

 

Warning 1 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:_//msrmaps_.com/']/wsdl:portType[@name='TerraServiceSoap'] E:\ASP.NET\Visual Studio 2010\Projects\XapNote\XapNote\Service References\myTerraService\Reference.svcmap 1 1 XapNote


Warning 2 Custom tool warning: 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:_//msrmaps_.com/']/wsdl:portType[@name='TerraServiceSoap']
XPath to Error Source: _//wsdl:definitions[@targetNamespace='http:_//msrmaps_.com/']/wsdl:binding[@name='TerraServiceSoap'] E:\ASP.NET\Visual Studio 2010\Projects\XapNote\XapNote\Service References\myTerraService\Reference.svcmap 1 1 XapNote


Warning 3 Custom tool warning: 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:_//msrmaps_.com/']/wsdl:binding[@name='TerraServiceSoap']
XPath to Error Source: _//wsdl:definitions[@targetNamespace='http:_//msrmaps_.com/']/wsdl:service[@name='TerraService']/wsdl:port[@name='TerraServiceSoap'] E:\ASP.NET\Visual Studio 2010\Projects\XapNote\XapNote\Service References\myTerraService\Reference.svcmap 1 1 XapNote

Warning 4 Custom tool warning: No endpoints compatible with Silverlight 3 were found. The generated client class will not be usable unless endpoint information is provided via the constructor. E:\ASP.NET\Visual Studio 2010\Projects\XapNote\XapNote\Service References\myTerraService\Reference.svcmap 1 1 XapNote


Warning 5 Custom tool warning: Exception has been thrown by the target of an invocation. E:\ASP.NET\Visual Studio 2010\Projects\XapNote\XapNote\Service References\myTerraService\Reference.svcmap 1 1 XapNote


Error 6 Custom tool error: Failed to generate code for the service reference 'myTerraService'. Please check other error and warning messages for details. E:\ASP.NET\Visual Studio 2010\Projects\XapNote\XapNote\Service References\myTerraService\Reference.svcmap 1 1 XapNote

在cs文件中打不出来我引用服务的服务名(myTerraService),正常情况下,我打一个m就会自动提示出来,尝试了很多办法,也问了好多人,都没有解决,我都快绝望了。
以前引用webservice的时候出过类似情况,重新建立项目,添加引用即可。
解决了,重新建立的工程,就是不知道为什么有时候能成功有时候不能成功,这个很蛋疼。

设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©youerw.com 优尔论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。