windows phone7 添加Service Reference不成功的问题
来源:互联网 发布:mp3歌曲批量下载软件 编辑:程序博客网 时间:2024/06/10 08:34
最近几天在学习windows phone7的开发,在做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就会自动提示出来,尝试了很多办法,也问了好多人,都没有解决,我都快绝望了。
我试试在控制台下的项目就可以成功。实在不理解啊…………。
几天之后,突然的一个项目中的Service Reference能用了,好激动啊…………,我比较和其它项目中的一些文件,发现了项目中\Service References\myTerraService(定义的服务名)文件夹下的Reference.svcmap文件中ID不一样,于是我把能用的文件中的ID换到不能用的文件中,喔…………,能用了,呵呵,高兴啊,但是我感觉这还不是有效的解决办法,分享一下,希望有更好办法的朋友也分享一下!!!!!!!
此后,跟着林永坚的视频学习过程中做这人题目时,出现经度和纬度信息,就是我自己设定的这个值,而林永坚的视频中根本显示不出来这个经度和纬度信息,说明这个问题没有从根本上解决啊……………………
- windows phone7 添加Service Reference不成功的问题
- Windows Phone7+Web Service的图片图片上传解决方案
- Windows Phone7的新版本
- 有关wondows phone7工具栏添加图片的问题
- 编写windows phone7程序到现在,解决的问题总结。
- windows phone7的数据读取
- windows phone7 的资源链接
- windows phone7 button控件背景问题
- 微软Windows Phone7不支持剪贴板的原由
- 实现Windows Phone7 的DataTemplateSelector和CustomDataTemplateSelector
- Windows Phone7退出对话框的一点心得
- 实现Windows Phone7 的DataTemplateSelector和CustomDataTemplateSelector
- 解决POI3.10 添加图片不成功的问题
- c# Add Web Reference和Add Service Reference添加webservice的区别之一
- 基于Visual Studio2010开发Windows phone7新体验--CSDN技术专家眼中的Windows phone7
- windows下mysql5.1安装启动不成功的问题
- windows下mysql5.1安装启动不成功的问题
- windows service程序定时器的添加
- 设计模式星火01_单例模式
- 对bmp文件的总结
- XenServer 6.0 上安装NFS 之 NFS篇
- vim 分割窗口
- 偷懒也得怀揣个性
- windows phone7 添加Service Reference不成功的问题
- 三个事和三个问题
- VC编程经验01
- Web服务器boa在ARM平台上的安装配置
- 黑马程序员_java基础教程_其他对象
- Hibernate中one-to-many的基本操作
- 怎么才能少奋斗10年
- PDF相关的工具
- c++复习题 看了肯定挂科