Aaron Stebner's WebLog

Thoughts about setup and deployment issues, WiX, XNA, the .NET Framework and Visual Studio

How to resolve errors opening currentsettings.vssettings in the final release of VS 2005

How to resolve errors opening currentsettings.vssettings in the final release of VS 2005

Rate This
  • Comments 34

I have heard from a few customers who have run into some strange behavior in the Visual Studio IDE after uninstalling previous beta versions and installing the final release of Visual Studio 2005.  They have reported seeing issues including (but not necessarily limited to) the following:

  • Visual Studio shows an error message stating that it cannot open "C:\Documents and Settings\<user>\My Documents\Visual Studio 2005\Settings\currentsettings.vssettings" for writing
  • Launching Tools | Import and Export Settings... and choosing any of the radio buttons results in an error message stating "Error 1: Reset/Export/Import was interrupted by the user".
  • Keyboard shortcuts fail to work correctly in the Visual Studio IDE

For the customers I have worked with so far, the following steps have resolved this issue:

  1. Close all instances of the Visual Studio IDE
  2. Click on the Start menu, choose Run and type cmd
  3. Type "%programfiles%\Microsoft Visual Studio 8\Common7\IDE\devenv.exe" /resetuserdata (this command assumes that you have installed VS 2005 to the default path, so you will have to modify this command line if you installed to a non-default path)
  4. Wait 1-2 minutes for the devenv.exe process to finish.  You can use Task Manager to verify that the process has completed
  5. Restart the Visual Studio IDE

 

  • Thanks, this post saved my life :-)

    There were no keyboard shortcuts in RTM, after uninstall beta2/install RTM, but this post helps me out, my problem is solved.

    Thanks, thanks, thanks.

    Kazi
  • Hooray!!! It’s fixed!

    I had all of the problems that you mentioned. (No arrow keys, no backspace key, no delete key…) It rendered the IDE useless. :( I tried the /ResetSettings switch, but to no avail. /resetuserdata solved all my problems.

    Thank you, thank you!

    Luke
  • Well now I've done it. After reading your instructions I thought I might be able to resolve a problem I have been having with VS 2005. I have been developing some new web sites and simultaneously developing a console application in C# to process the iis web logs from my web server. Twice in the last 2 weeks I have re-install VS in order to restore the web templates normally available when selecting File | New Web Site option. It seems that when I am working on both a console application and web apps that after some period of time the New Web Site dialog begins to display the same templates as those presented when selecting File | New Project

    I have reported the bug and Microsoft has Validated it . I have found a poor but manageable workaround. : I can create a new web site by selecting Create a Web Site from the Getting Stared selections on the Start Page. This is a very poor alternative for several reasons:

    1. Using this option automatically names the new web site WebSiteN where N is the next number in the numerical sequence.
    2. It places the new web site in the \Visual Studio 2005\WebSites directory where \ is the path where VS was installed. If you use the default installation option this will be under the C:\documents and setting \My Documents which I personally find inconvenient.
    3. This option creates only the App_Data directory and the default.aspx document. There are no options to tell it to create Web.config or Web.sitemap files. You will have to create these yourself after the site is created.

    I came across this blog while looking for a better solution. I decided to try using the reset settings command provided. ERROR ! The result was that now the Visual Studio Installed Templates available are those associated with BI projects: (Analysis Services, Report Server Projects, etc.). I can get to the templates for other kinds of projects through the File | New Projects option because it provides a panel for changing the project category except for web projects. Soooo! Now the File | New Web Site option displays templates for BI projects. To make matters worse the Getting Started panel on the Start Page no longer displays the Create Web Site option so I can no longer use that workaround.

    Am I am doomed to the painfully slow re-installation process or can you recommend something else? Do you have any insight into the cause and solution for the bug? or at lease a simpler work around?
    Why does MS think that Web Development projects need to be isolated from other kinds of projects? It would have been so simple to have a link to Web templates from the New Projects dialog since every other kind of project is presented there. I love the new environment and I am migrating everything to VS 2005 but sometimes progress involves some steps backward.
    Thanks for any insight you can offer.

  • Hi,

    You're a lifesaver! ;-) I've spent (too) many hours uninstalling and installing, removing various left-overs from by beta 2 installation.

    ... I was about to reinstall my computer!

    Thanks a lot!!!

    Best regards,
    Finn
  • Hi Ron - I am sorry to say I don't have much experience with the issues that you are describing so I'm not sure what kind of workaround to suggest here.

    I can see the Create Web Site link on the start page in the version of VS 2005 installed on my computer. It is in the "recent projects" section in the top left of the start page. I am not sure why this would not appear on your system however. You may want to try running devenv.exe /ResetSettings and devenv.exe /ResetUserData and see if that helps. Also, I'm not sure which development profile you chose the first time that you launched Visual Studio or if that plays a role in what appears on the start page, but just for reference I chose the "general development" profile on my system.

    You may want to try to search on the MSDN forums (http://forums.microsoft.com) for additional suggestions for workarounds.

    Sorry I'm not more helpful here. :-(
  • Your solution worked ... too bad i wasted a couple hours searching and trying other things before finding this link ... the solution is always in the last place you look. :)

    FYI this was on a fresh install of a new OS and apps. I believe the problem is a result of SQL Srv 2005 (or was it Office 2003 ?, can't remember) installing a version of VS 2005 (Pro ?) before i actually installed the 'actual' (Team Dev Ed) version.

    My order of install:
    - Win 2003 Srv Ent R2 x32 w/SP1
    - Office 2003 w/ SP2
    - Frontpage, Project, OneNote, Visio (all w/SP2)
    - SQL Srv 2005 Ent
    - VS 2005 Team Dev Ed
  • Thank You Aaron!!!
    After a month of absolutely waisting my time trying to figure out why on earth VS2005 hang, I finally found your site and the devenv.exe tip!!
    Fantastic!
    /benny
  • Hello again Aaron
    My success with VS 2005 didn't last after a reboot... I've tried now to manually remove VS2005 following your guidelines and reinstalling again with no problem at all. But everytime I start VS 2005 (no matter what I've done before) and create a new C# project the program stops responding, with the title bar message '(not responding)'. Do You hava any idea?
    Thank You
    /benny



  • Genius! Works perfectly. For the benefit of future Googlers: C# text source editor locks file, stops allowing edits, cannot press enter to create new line, cannot use backspace key, Edit+Copy menu works but Ctrl+C does not. Source code appears to be read only.
  • I had a similar problem but it only appeared after weeks of using VS2005 (I never had the beta on this PC).  I tried all the above remedies and then did a complete re-install of VS2005 to no avail.
    The solution turned out to be:
    • close all instances of VS2005
    • go to "Visual Studio 2005" directory under My Documents
    • open “Properties” and untick (uncheck) the Read Only box and apply this to all sub-directories
    • rename this directory “Visual Studio 2005 – old” for later comparison
    • restart VS2005
    You get a warning prompt, after which it appears to adopt the settings of the last session.

    Only one day lost...

    Crispin
  • Hi,

    This solution sounds great, *but* when I don't have the devenv executable anywhere that I can see. I did have the Beta on, uninstalled everything that I could find, reinstalled 2005 and now it is incredibly slow to open, close and do anything at all and complains that it can't find the vssettings file.

    Any other suggestions?
  • Sorry, I did actually manage to find the devenv exe by searching through the registry, and this did the trick, although its still quite slow for loading and even moving between tabs on the options panel etc.

    Thanks anyway,
    Annie
  • I have pulled my hair out over the same problem. Trying your suggestion of /resetuserdata didn't work for me, but launching devenv.exe/? showed me a list of switches, one of which was /resetsettings.  That worked like a charm!
  • I had the same issue and I just bypassed the .sln file, opened the project itself, and rebuilt the solution file. It fixed it for me.
  • Thanks. I was about to reinstall when I found this.

    I had all my shortcut keys vanish, and the keyboard options page went to hell (no items in any lists, the control key entry box was just a regular text box). This happened right after installing the DX SDK April update (freshly installed computer, just WinXP, the windows updates, and VS.NET 2005 on it at the time).

    Of course, I'd have to reinstall the DX SDK to get syntax highlighting and all back, but that's way less painful than reinstalling the whole of Visual Studio.

    Thanks again,
    Phill
Page 1 of 3 (34 items) 123
Leave a Comment
  • Please add 7 and 3 and type the answer here:
  • Post