向 WP8 应用程序添加服务引用时出现问题 [英] Problems adding a service reference to a WP8 app
问题描述
我尝试添加对 http://www.webservicex.com/globalweather.asmx?WSDL
Web 服务的服务引用.我去添加服务引用,它发现它很好,但是当我尝试点击确定时,我收到错误:
I try to add a service reference to the http://www.webservicex.com/globalweather.asmx?WSDL
web service. I go to Add service reference, it discovers it just fine, but when i try to hit OK, I get the error:
无法签出当前文件.该文件可能是只读的或被锁定的,或者您可能需要手动签出该文件.
Unable to check out current file. The file may be read-only or locked, or you may need to check the file out manually.
我也尝试在高级"选项卡下添加网络参考,但没有任何选项可以这样做.
I also tried adding a web reference under the "Advanced" tab, but there isnt any option to do so.
我尝试在 7.1 目标应用程序中这样做,同样的错误.我的朋友在 Visual Studio 2010 上执行此操作,但没有出现此类错误.
I tried doing so in a 7.1 targeted app, same error. My friend is doing this on a Visual Studio 2010, and he gets no such error.
推荐答案
好的,我找到了一个解决方案:以管理员身份运行 Visual Studio.
OK, I found a solution: run Visual Studio as Administrator.
这篇关于向 WP8 应用程序添加服务引用时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!