BingMaps RouteService Web 服务参考的令人困惑的问题

发布于 2024-10-17 14:07:08 字数 759 浏览 6 评论 0原文

希望有人能帮助我 - 这让我发疯!!

我正在开发一个使用 Bing 地图的 WP7 应用程序,我需要使用 RouteService Web 服务(可在此处找到:http://dev.virtualearth.net/webservices/v1/routeservice/routeservice.svc),以便创建访问点的路线,但当我完成添加服务引用时,出现以下错误我无法对 Web 服务执行任何操作:

自定义工具错误:无法为服务引用“RouteService”生成代码。请检查其他错误和警告消息以了解详细信息。 D:\Projects\WindowsPhone\MapApp\Service References\RouteService\Reference.svcmap。

疯狂的是我下载了另一个演示项目,它已经引用了这个完全相同的网络服务,并且工作正常。但如果我尝试更新该引用,它就会给我同样的错误!

我在两台不同的 Windows 7 机器上尝试过此操作,一台安装了 WP7 开发工具的最新更新,另一台没有安装,并且在两台机器上都可以完成此操作。我也尝试过重新启动,但没有成功......就像某些地方发生了变化,但我不知道是什么!

有人可以尝试添加此服务参考,如果他们遇到同样的问题,请告诉我 - 我对这里发生的事情感到完全困惑!

蒂亚……

迈克

Hope someone can help me - this is driving me crazy!!

I'm developing a WP7 app that uses Bing Maps and I need to use the RouteService webservice (found here: http://dev.virtualearth.net/webservices/v1/routeservice/routeservice.svc) in order to create a route of points visited but when I finish adding the service reference I get the following error and I can't do anything with the web service:

Custom tool error: Failed to generate code for the service reference 'RouteService'. Please check other error and warning messages for details. D:\Projects\WindowsPhone\MapApp\Service References\RouteService\Reference.svcmap.

The crazy thing is I have another demo project I downloaded which already had the reference to this exact same web service and it works fine. But if I try to update that reference it then gives me the same error!

I have tried this on two different Windows 7 machines, one with the very latest updates to the WP7 dev tools and one without and it does it on both machines. I've also tried rebooting with no luck.... it's like something's changed somewhere but I have no idea what!

Can someone please try adding this service reference and letting me if they get the same issue - I am completely baffled as to what is happening here!

TIA....

Mike

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

没企图 2024-10-24 14:07:08

没有明确的答案,但我在一个项目中遇到了同样的问题,因为在 Bing Map 路由之前我已经在其中有一个服务引用。我最终使用 Bing 地图服务引用创建了一个新项目,并卸载该项目,并将 csproj 文件的相关部分的内容复制到我的项目文件 (csproj) 中。

Service References 子文件夹内的目录中还有几个文件。

No defitinive answer but I hit the same problem with a project because I already had a service reference in it before the Bing Map routing one. I ended up create a new project with the Bing Map service reference and unload the project and copy the content of the relevant sections of the csproj file in my project's file (csproj).

There's also a couple files in a directory inside Service References subfolder.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文