VS2010添加服务参考缺失(无法添加服务参考) [英] VS2010 Add Service Reference missing (Unable to add Service Reference)

查看:178
本文介绍了VS2010添加服务参考缺失(无法添加服务参考)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到的问题似乎与此问题相同.我无法将服务引用添加到Visual Studio中的任何项目.我什至可以格式化整个计算机,重新安装Windows(Windows 7 Ultimate)和VS2010 Professional.两次.这是一台我继承的工作计算机,我感到奇怪的是,即使在格式化驱动器并重新安装所有内容之后,我也无法在该计算机上添加对 any 项目的服务引用.

I have an issue that seems to be identical to this question. I am unable to add a service reference to any project in Visual Studio. I went so far as to format the entire computer, re-install Windows (Windows 7 Ultimate), and VS2010 Professional. Twice. This is a work computer that I inherited and I find it odd that, even after formatting the drive and reinstalling everything, I cannot add a service reference to any project on this computer.

我100%确信在项目设置中将.NET 3.5作为目标,甚至创建了一个空项目来进行尝试.结果相同.我不确定我缺少什么.我正在从TFS中提取原始解决方案(其他人都没有这个问题),所以这并不是我在解决方案中遗漏了某些东西.

I am 100% certain that .NET 3.5 is being targeted in my project's settings and even created an empty project to try it out. Same results. I am not sure what I am missing. I am pulling the original solution from TFS (nobody else has this problem) so it's not like I'm missing something in the solution.

有什么想法吗?

我刚刚创建了另一个帐户(也有Admin),并且可以将服务引用添加到该帐户下的项目中.我想念什么吗?我原来的帐户中有撇号-会把事情搞砸吗?

I just created another account (Admin as well) and I can add service references to projects under that account. Am I missing something? My original account has an apostrophe in it--would that mess things up?

尽管已解决此问题,但我对修复操作不满意.稍后我将与Microsoft一起打开一个错误,但我很好奇首先要了解造成此错误的原因以及以后如何避免它.

While this has been fixed, I am not happy with the fix-action. I will be opening up a bug with Microsoft later, but I am curious to understand what caused this in the first place and how to avoid it in the future.

修改3:

我与Microsoft(

I opened a bug report with Microsoft (here).

推荐答案

解决方法:

如我的错误报告中所述,我的解决方法是在计算机上创建一个新的Windows用户帐户(确保名称中没有撇号).无论出于何种原因,这个新帐户都可以添加服务引用,但原始帐户仍然无法添加.

My work around, as posted in my bug report, was to create a new Windows user account on the machine (making sure not to have an apostrophe in the name). For whatever reason, this new account is able to add service references but the original still cannot.

(如果有人可以发布允许原始帐户能够添加服务参考的解决方案,那么我将把答案更改为所选答案.)

这篇关于VS2010添加服务参考缺失(无法添加服务参考)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆