Can't create new projects nor items: Visual Studio 2010 dialog initialization exception

visual-studio, visual-studio-2010

Solution

It sounds like you might have a problem related to a third party package or add-in. Here are some things to try:

Running Visual Studio as an administrator.

You can try running `devenv /Resetsettings` (see here) in a Command Prompt which should fix any corrupted settings

Try running `devenv /ResetSkipPkgs` (see here) which will avoid loading any problem packages.

Try running `devenv /Safemode` (see here). If it works in safe mode then the problem is most likely a third party add-ins or package.

You can also try `Devenv.exe /log <log path>"`. This will generate a file called `ActivityLog.xml` which might give you further clues.

If none of those help then repair Visual Studio from the Control Panel.

Problem

Whenever I do Add>New Item, Add>New Project or File>New Project VS2010 is throwing a dialog initialization exception, preventing me from creating new projects or classes. Any idea on what could be going wrong?

Original source