VS2010 Add Service Reference missing (Unable to add Service Reference)
Asked Answered
S

4

6

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.

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.

Any thoughts?

Edit:

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?

Edit 2:

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.

Edit 3:

I opened a bug report with Microsoft (here).

Sedillo answered 19/7, 2011 at 0:44 Comment(0)
S
4

Work Around:

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.

(If somebody can post a solution that allows the original account to be able to add service references, I will change that answer to the selected answer.)

Sedillo answered 22/7, 2011 at 6:10 Comment(3)
This workaround worked for me as well. Very annoying bug. I have Windows Phone development tools add-in installed, which might be causing this.Buckner
Yes, it is very annoying and very random. It's crazy that I could replicate it three times on a fresh Windows/VS install. Thanks for the +1.Jitney
This didn't worked me sadly. I had tried with many users. I can add Service reference in Eclipse J2EE but any of method mentioned here didn't helped me :(Ironmonger
S
1

Same thing happened to me. My original account has an apostrophe, so I created a second DevUser account which works fine.

Subsequence answered 16/3, 2012 at 13:38 Comment(0)
B
0

I finally solved , I realize that Extention Manager can't reach Online Gallery.Beside I could add a service reference in my domain. In my case this was an internet connection problem. I opened devenv.exe.config file and found the proxy it shows our tfs address,but I can't beleive that! How could it be? I commented it and everythings seems fine now.

here is the answer Cannot connect to any online resource

    <system.net>
        <defaultProxy enabled="true" useDefaultCredentials="true">
        <!--proxy bypassonlocal="True" proxyaddress="http://tfs.mycompany.com.tr:8080/tfs/productdevelopmentserverxxx"/-->
    </defaultProxy>
    <settings>
        <ipv6 enabled="true"/>
        <servicePointManager expect100Continue="false" />
    </settings>
    </system.net>

Also have a look at this

Bullshit answered 7/6, 2012 at 11:20 Comment(0)
B
0

Be sure you are not in debug mode when you are trying to add the service reference! This one caught me!

Bubonocele answered 16/7, 2013 at 14:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.