Problems adding a service reference to a WP8 app

a 夏天 提交于 2019-12-22 04:09:31

问题


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.

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.


回答1:


Follow these step, hope it will work:

  1. Go to DebugOptions.
  2. Select Source Control in the list.
  3. Under Current Source ControlPlug-in drop down select none.



回答2:


OK, I found a solution: run Visual Studio as Administrator.




回答3:


I had the similar issue with Updating Service reference.

My solution was :

  • Right click on the Service reference
  • Check Out for edit
  • Then try to update the reference.



回答4:


I had the same problem and none of the suggested tricks worked, but when I opened the Advanced dialog and selected Add Web Reference all went well.



来源:https://stackoverflow.com/questions/20456456/problems-adding-a-service-reference-to-a-wp8-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!