jonny
jonny

Reputation: 797

visual studio cannot open new project

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

Answers (6)

Lukash
Lukash

Reputation: 431

I had the same problem on my computer. After a long time searching I solved it by the following steps:

  1. Close all instances of Visual Studio
  2. Go to "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE" (or whatever is your VS installation directory)
  3. Run command devenv.exe /resetuserdata and wait until finished
  4. Run Visual Studio

Upvotes: 33

Justin LaRose
Justin LaRose

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

Neerkoli
Neerkoli

Reputation: 2695

Close all VS instances and try the solution mentioned here:

  • 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: 2

Tayyebi
Tayyebi

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

SP User2017
SP User2017

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

Zeng Yun
Zeng Yun

Reputation: 1

Open your control panel
Change

Regional -> Formats tab -> Format: English(United States)

https://connect.microsoft.com/VisualStudio/feedback/details/727578/vs-do-not-work-with-finnish-number-format-on-w8-64-bit

It works for me :)

Upvotes: 0

Related Questions