Microsoft Developer Network > Forums Home > Archived Forums Forums > LINQ Project General > Hosed Refactoring Smart Tags after LINQ May CTP Install
Ask a questionAsk a question
 

AnswerHosed Refactoring Smart Tags after LINQ May CTP Install

  • Friday, May 19, 2006 5:02 PMScott Bellware Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I installed the May CTP. The refactoring Smart Tags no longer work.

    For example, when a variable name is changed, the underscore glyph appears indicating that a refactoring is available. Usually, by hovering over the glyph or by pressing a shutcut key, a Smart Tag will appear. This Smart Tag no longer appears.

    Further, the Refactor shortcut menu is no longer available in the body of the editor.

    I uninstalled the C# 3 language service using "Uninstall C# IDE Support.vbs", but the refactoring support was not reset.

    How do I restore my IDE to it's previous state? Do I need to re-install VS?

    By the way, I have noticed one other really odd behavior that is likely unrelated, but a bit unnerving. After the installation of the CTP is complete, Firefox opens and navigates to the VH1 homepage. I've done it a couple times and the behavior is consistent. I've scanned for viruses, trojans, kits, etc.

Answers

  • Wednesday, June 21, 2006 8:45 PMTing Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Can you please try fixing up the registry value HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\VisualStudio\8.0\Packages\{A066E284-DCAB-11D2-B551-00C04F68D4DB}\SatelliteDLL\Path?

    If you still can't find this registry key then it is time to repair your visual studio installation from your original disk.

    As for the "odd" behavior at the end of LINQ install you mentioned, the installer is designed to open up 2 web pages from the following location using the default HTML browser installed on your machine:

    C:\Program Files\LINQ Preview\Readme for VB.htm

    C:\Program Files\LINQ Preview\Readme for C#.htm

    Note however the script to launch the readme was not tested with Firefox for this release and the difference between IE html handler registration and Firefox may explain the "odd" behavior you saw.

    Ting

All Replies

  • Friday, May 19, 2006 5:42 PMMarcD Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Having had problems similar to this I would say you could try reinstaling VS but be prepared for both to be hosed permanently. I've not had any luck with reinstalling VS. On abrand new machine I installed VS and then had to reinstall it. Anything SQL related was hosed. Anything XSLT related was hosed. Subsequent uninstallations and reinstallations were of no avail. Sometimes the old "format" adage still stands true even in today's modern age but I'd definitely give it a try to see if it fixes it. Just be prepared for it to not.
  • Friday, May 19, 2006 6:16 PMScott Bellware Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Wow.  How utterly dreary.  I hope the reformat of your machine wasn't caused by installing a LINQ preview.  Was it?
  • Friday, May 19, 2006 6:33 PMMarcD Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    No. it was not. I was trying to get a certain version of SQL Server installed. (I think i had chosen not to install it in the first install and tried reinstalling it with it enabled this time. Needless to say things didn't go well :) ) Hopefully your experience will be more fullfilling
  • Sunday, May 21, 2006 7:12 AMTerotech.Com Ltd Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Scott, have you tried using the "Uninstall C# IDE Support.vbs" script in the Linq\Bin folder (by default installed to C:\Program Files\LINQ Preview\Bin) ?? did this not work?

     

    Regards,

    D

     

  • Sunday, May 21, 2006 5:28 PMDinesh Kulkarni - MSFT Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    We are looking into the problem and will get back to you once we have a fix or a workaround. Thanks for reporting.

    Dinesh

  • Monday, May 22, 2006 4:02 PMScott Bellware Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

     Terotech.Com Ltd wrote:
    Scott, have you tried using the "Uninstall C# IDE Support.vbs" script in the Linq\Bin folder (by default installed to C:\Program Files\LINQ Preview\Bin) ?? did this not work?

    Indeed, as I mentioned in the head post of this thread, I have run the "Uninstall C# IDE Support.vbs".

  • Monday, May 22, 2006 5:23 PMTing_MS Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi all.  For those who are experiencing this problem could you please try this work around

    1. Start up RegEdit.exe

    2. Open HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\8.0\Packages\{A066E284-DCAB-11D2-B551-00C04F68D4DB}\SatelliteDLL

    3. Edit the "Path" value and change it from "C:\Program Files\Microsoft Visual Studio 8\VC#\VCSPackages\1033\" to "C:\Program Files\Microsoft Visual Studio 8\VC#\VCSPackages\"

    4. Restart Visual Studio and see if these problems are fixed?

     

    Thanks

     

    Ting Liang

  • Monday, May 22, 2006 6:00 PMScott Bellware Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    This doesn't fix the problem for me.  The change to the registry key has had no discernible effect on my installation of Visual Studio.

    -Scott
  • Monday, May 22, 2006 7:30 PMTing_MS Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Sorry to hear that.  Can you try one more step:

    5. Go to C:\Program Files\Microsoft Visual Studio 8\Common7\IDE and run devenv /setup followed by devenv /resetuserdata followed by devenv /resetsettings CSharp.

    Ting Liang

  • Monday, May 22, 2006 8:01 PMScott Bellware Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Yes, that fixes the problem.  Although, VS did crash during the second step.  I ignored the error and did not send an error report.  The IDE appears to be running correctly now - at least in terms of the refactoring SmartTags.
  • Wednesday, June 21, 2006 8:10 PMDaikoku Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I tried all the steps in this thread but am not able to recover refactoring and resolve reference commands.

    I tried uninstalling, repairing LINQ.
    Running Uninstall C# IDE Support.vbs gave me the following error: Invalid root in registry key "HKLM\Software\Microsoft\LINQ Preview\VCSPKGDIR" Code: 80070002 Source: WshShell.RegRead

    The 2nd step changing the reg key doesn't work because that reg key is non existing
    calling devenv /xxx, etc. reset all my settings, etc. but refactoring is sill not restored.

    and the oddest thing of all!! .. Whenever I run LINQ setup, after it finished it launches 2 Firefox windows with a bunch of odd webpages opening!?


  • Wednesday, June 21, 2006 8:16 PMDaikoku Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I got the Uninstall C# IDE Support.vbs working by replacing all HKLM\Software\ with HKLM\Software\Wow6432Node but this still doesn't restore my refactoring items... :/
  • Wednesday, June 21, 2006 8:45 PMTing Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Can you please try fixing up the registry value HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\VisualStudio\8.0\Packages\{A066E284-DCAB-11D2-B551-00C04F68D4DB}\SatelliteDLL\Path?

    If you still can't find this registry key then it is time to repair your visual studio installation from your original disk.

    As for the "odd" behavior at the end of LINQ install you mentioned, the installer is designed to open up 2 web pages from the following location using the default HTML browser installed on your machine:

    C:\Program Files\LINQ Preview\Readme for VB.htm

    C:\Program Files\LINQ Preview\Readme for C#.htm

    Note however the script to launch the readme was not tested with Firefox for this release and the difference between IE html handler registration and Firefox may explain the "odd" behavior you saw.

    Ting

  • Wednesday, June 21, 2006 8:53 PMDaikoku Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I did that and after that ran
    devenv /setup
    devenv /resetusersettings
    devenv /resetsettings

    but still not restored :(
  • Wednesday, June 21, 2006 8:56 PMDaikoku Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    ahhhh I was missing the CSharp after /resetsettings. Now it works. Thanks!
  • Thursday, June 22, 2006 2:30 AMJudah Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I tried steps 1-4, didn't work. Tried step 5 which reset my VS settings, still no luck!

    Hope someone finds a workaround for this soon.
  • Thursday, June 22, 2006 2:32 AMJudah Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Ok, this is strage. I ran the the /resetsettings csharp command a second time, now it works. :) Thanks guys.
  • Thursday, June 22, 2006 7:23 AMDaikoku Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Since I unfortunately can't really test LINQ due to these Intellisense and function problems I'm curious if you have a timeline for the next CTP that will address those issues?

    Thanks,

    Tom
  • Thursday, June 22, 2006 12:29 PMJoe AlbahariMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Smart Tags are hosed for me too on my installations of Studio  both at home and at work after installing the LINQ preview. Rename member via F2 still works, though, so I'm not too upset.

    Do the fixes require uninstalling LINQ? For me this is not an option; LINQ is far too good to uninstall!

    Very different from the Workflow Foundation CTP - I can't get that off my machine fast enough :)

    Joe
  • Thursday, June 22, 2006 6:26 PMTing_MS Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    The steps outlined above to fix this issue does not require uninstalling LINQ or uninstall C# language service.

    Ting

  • Thursday, June 22, 2006 6:32 PMTing_MS Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Please try install the C# Language Service for LINQ and then try step 1-5.  Thanks.  Let us know if you don't get LINQ intellisense as well as refactoring working.

    No currently there's no timeline for next LINQ-only CTP.

    Ting

  • Saturday, July 08, 2006 5:37 PMsyndeo Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    No luck here either... any more suggestions?
  • Tuesday, July 11, 2006 11:14 PMJoshua M Thomas - Ramp Group Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I'm having the same issue... I ran the devenv commands and then did the registry update and I'm still without my Refactor on the context menu.
  • Tuesday, July 11, 2006 11:20 PMTing_MS Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Reposting all the steps - they need to be completed in the sequential order as follows

    1. Start up RegEdit.exe

    2. Open registry key [HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\8.0\Packages\{A066E284-DCAB-11D2-B551-00C04F68D4DB}\SatelliteDLL]

    3. Edit the "Path" value and change it from "C:\Program Files\Microsoft Visual Studio 8\VC#\VCSPackages\1033\" to "C:\Program Files\Microsoft Visual Studio 8\VC#\VCSPackages\"

    4. Go to C:\Program Files\Microsoft Visual Studio 8\Common7\IDE

    5. Run Devenv.exe /Setup

    6. Run Devenv.exe /ResetUserData

    7. Run Devenv.exe /ResetSettings CSharp

     

    Ting Liang

  • Monday, September 04, 2006 9:00 AMendtje Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hello Ting,

    I have followed all these steps, and the problem remains. Others have also reported that the solution doesn't work for them. Can you think of another solution?

    Thanks,

    JP

  • Friday, September 15, 2006 6:35 PMTing_MS Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    The most reliable way of resolving this issue beyond using the above steps is actually running a repair of Visual Studio.  Please give that a try.

    Thanks

    Ting

    Microsoft Visual Basic

  • Monday, September 18, 2006 8:09 PMRavi KP Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I also got the same error, and i was using Windows XP Professional - 64 bit
  • Monday, September 18, 2006 8:27 PMRavi KP Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi,

    As i followed the Ting_ms instructions everything worked fine for me, but for the Windows-XP Professional 64 bit you need to change in this location

    1. Open Regedit

    2. Open HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\VisualStudio\8.0\Packages\{A066E284-DCAB-11D2-B551-00C04F68D4DB}\SatelliteDLL

    3. Edit the "Path" value and change it from "C:\Program Files\Microsoft Visual Studio 8\VC#\VCSPackages\1033\" to "C:\Program Files\Microsoft Visual Studio 8\VC#\VCSPackages\

    4. Go to VS.NET 2005 Command Prompt

    5. Run devenv.exe /setup /resetuserdata /resetsettings

  • Wednesday, March 28, 2007 9:59 AMNet-Benjamin Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

     

     

       I have tried all steps... Regedit.exe changing the key, running all command line commands but nothing happens. I've created a simple Class Diagram and when I've tried to rename anything I've got the same error.

     

       Please help me!

     

       Error.    "Could not Load file or assembly Microsoft.VisualStudio.CSharp.Service.Language..."

  • Tuesday, January 20, 2009 3:36 PMDen Hammer Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I had "the Refactor shortcut menu is no longer available in the body of the editor."

    I had "The refactoring Smart Tags no longer work."

    I did that:


    1. Started up RegEdit.exe and opened HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\8.0\Packages\{A066E284-DCAB-11D2-B551-00C04F68D4DB}\SatelliteDLL

    2. Edited the "Path" value and changed it from "C:\Program Files\Microsoft Visual Studio 8\VC#\VCSPackages\1033\" to "C:\Program Files\Microsoft Visual Studio 8\VC#\VCSPackages\"

    3. Went to C:\Program Files\Microsoft Visual Studio 8\Common7\IDE and ran

    devenv /setup

    devenv /resetuserdata

    devenv /resetsettings CSharp

    4. Restarted Visual Studio


    That fix my problem!

    All nice work!

    Thank you!