Reputation: 797
Whenever I try to create a new project in VS 2010 I get the error:
New project/item dialog could not be initialized due to error: Exception of type 'Microsoft.VisualStudio.Dialogs.DialogInitializationException' was thrown.
And when try to open existing project visual studio 2010 restarts.
Upvotes: 10
Views: 37053
Reputation: 431
I had the same problem on my computer. After a long time searching I solved it by the following steps:
devenv.exe /resetuserdata
and wait until finished Upvotes: 33
Reputation: 9
I found this to still be an issue in Visual Studio Community 2017, Microsoft released a work around that fixed my problem:
The work-around for this issue would be:
-Launch “Developer Command Prompt for VS 2017” as Administrator
-Go to VS 2017 installation folder, for example: pushd C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise
-gacutil -if Common7\IDE\PublicAssemblies\Microsoft.VisualStudio.Shell.Interop.8.0.dll
Upvotes: 0
Reputation: 2695
Close all VS instances and try the solution mentioned here:
pushd C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise
gacutil -if Common7\IDE\PublicAssemblies\Microsoft.VisualStudio.Shell.Interop.8.0.dll
Upvotes: 2
Reputation: 188
This problem can cause when you install an older version of Visual Studio nearby the current version. For example VS 2017
is installed on your system and you do force install of VS 2008
.
I faced this problem many years ago by installing VS 2008
after VS 2010
;
and today again I had this problem. Because I installed SolidWorks 2015
after VS 2017
. SolidWorks
had a Visual Studio 2008 inside its package that interferes my installation.
Just uninstalled VS 2008
and I'm done.
Upvotes: 0
Reputation: 21
I can't find the former case. As you met an exception
Microsoft.VisualStudio.Dialogs.DialogInitializationException
I am suggesting you try the way below:
Run devenv /resetuserdata
.
Delete the file:
%LOCALAPPDATA%\Microsoft\VisualStudio\11.0\ComponentModelCache
and restart Visual Studio.
Upvotes: 2
Reputation: 1
Open your control panel
Change
Regional -> Formats tab -> Format: English(United States)
It works for me :)
Upvotes: 0