Visual Studio 2012不会启动。

时间:2021-01-03 08:57:29

I installed VS2012 Premium from our MSDN subscription and it was working fine the first couple of days but then I installed a few extensions I can't now start VS2012 and it gives the error:

我从我们的MSDN订阅中安装了VS2012 Premium版,它在前几天运行良好,但是我安装了一些扩展,我现在不能启动VS2012,它给出了错误:

Faulting application name: devenv.exe, version: 11.0.50727.1, time stamp: 0x5011ecaa
Faulting module name: ntdll.dll, version: 6.1.7601.17725, time stamp: 0x4ec49b8f
Exception code: 0xc0000374
Fault offset: 0x000ce6c3
Faulting process id: 0xee8
Faulting application start time: 0x01cd89bb777fc1dd
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe
Faulting module path: C:\Windows\SysWOW64\ntdll.dll

I'm running it on Windows 7 64 bit.

我在Windows 7 64位上运行它。

I've tried to repair, uninstall and install again and nothing. I tried to restore to a previous restore system point but nothing.

我试着修复,卸载,再安装,什么都没有。我尝试恢复到以前的恢复系统点,但是没有。

The extensions I installed I can remember:

我安装的扩展我记得:

  • VS10x Code Map
  • VS10x代码映射
  • VSCommands
  • VSCommands
  • Visual SVN
  • 视觉SVN
  • Nuget manager
  • Nuget经理

(all the above my colleagues have it too and it works fine for them) and:

(以上我的同事也都有,而且效果不错)。

  • Web Essentials
  • Web本质
  • Visual Studio Color Theme Editor
  • Visual Studio彩色主题编辑器。
  • SlowCheetah
  • SlowCheetah
  • Mobile Ready HTML5
  • HTML5手机准备好了

Questions are:

问题是:

  1. Anyone else has had this problem?
  2. 还有人有这个问题吗?
  3. Is there a way I can uninstall extensions from a command line or software? (I removed the extensions folder but that doesn't do anything)
  4. 是否有一种方法可以从命令行或软件卸载扩展?(我删除了扩展文件夹,但什么也没做)
  5. Can I repair the "C:\Windows\SysWOW64\ntdll.dll"? Is it really a problem with this dll?
  6. 我能修复“C:\Windows\SysWOW64\ntdll.dll”吗?这个dll真的有问题吗?

I haven't been able to find any similar issue in other versions and because VS2012 is new doesn't seem to be much information either.

我还没能在其他版本中找到类似的问题,因为VS2012是新的,似乎也不是什么信息。

10 个解决方案

#1


54  

It is working now!. This is what I did:

现在是工作!这就是我所做的:

Following the suggestion here:

这里的建议:

  1. Removed the key: [HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]. VS2012 loading but then crashing before I could do anything else (error in C:\Windows\syswow64\KERNELBASE.dll)
  2. 删除键:[HKEY_CURRENT_USER\ Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]。VS2012加载,但在我还没做其他事情之前就崩溃了(c:) windowssyswow64\ KERNELBASE.dll中的错误。
  3. Then I removed:
    • [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0]
    • 微软软件\[HKEY_CURRENT_USER \ 11.0 \ VisualStudio \]
    • [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config] and started again and is working fine.
    • [HKEY_CURRENT_USER\ microsoft\ VisualStudio\11.0_Config]然后重新启动,运行良好。
  4. 然后我删除了:[HKEY_CURRENT_USER\ microsoft\ VisualStudio\11.0] [HKEY_CURRENT_USER\ microsoft\ VisualStudio\11.0_Config],然后重新启动,运行良好。

I obviously lost all my settings but no big deal as I can now do some work! :)

很明显,我失去了所有的设置,但是没有什么大不了的,因为我现在可以做一些工作!:)

#2


20  

Running devenv.exe with the /SafeMode argument would probably have also fixed it.

devenv运行。exe与/SafeMode参数可能也会修复它。

#3


7  

I opened a different .sln and then went back to my faulting project and it loaded! Maybe something with a faulty close-down of the project

我打开了一个不同的。sln,然后回到我的错误项目,它加载了!可能是项目关闭的问题。

#4


2  

Removing all VS settings is a bit harsh unless all visual studio instances crash immediately.

删除所有VS设置有点苛刻,除非所有visual studio实例立即崩溃。

What probably happens when you encounter this is that Visual Studio opens the designer window that caused it to crash in the first place... this is often an extension, but it might also just be a bug in VS. For example: I sometimes experience this when working with LINQ-TO-SQL and have the database-schema designer open.

当您遇到这种情况时,可能会发生的是,Visual Studio打开了导致它首先崩溃的设计器窗口……这通常是一个扩展,但它也可能只是一个bug,例如:我在使用linqto - sql时有时会遇到这种情况,并且打开了数据库模式设计器。

The easiest resolution is to simply remove the SUO file with the solution settings, and open the SLN. You can then do whatever you want, except go to the file with the issue- once you know what that file is, you can fix it (f.ex. in the case of a DBML by simply removing it and regenerating it)

最简单的解决方法是简单地用解决方案设置删除SUO文件,然后打开SLN。然后你可以做任何你想做的事情,除非你去处理这个问题——一旦你知道那个文件是什么,你就可以修复它(f.ex)。在DBML的情况下,只需删除它并重新生成它)

#5


2  

Just copy all dte*.olb files, from C:\Program Files (X86)\Common Files\Microsoft Shared\MSEnv to C:\Program Files X86\Microsoft Visual Studio 9.0\Common7\IDE.

复制所有的终端设备。olb文件,从C:\Program Files(X86)\共同微软文件\ \ MSEnv C:\Program Files X86 \ 9.0 \ Common7 \ Microsoft Visual Studio IDE。

From https://mycodepad.wordpress.com/2013/12/07/visual-studio-2012-4-run-as-administrator-the-application-cannot-start-error/

从https://mycodepad.wordpress.com/2013/12/07/visual工作室- 2012 4 -运行-作为管理员error/——应用程序——不能启动

#6


2  

Simply running as Administrator seemed to be enough to get it running for me, at least temporarily.

仅仅作为管理员运行似乎足够让它为我运行,至少是暂时的。

#7


0  

I had a similar ntdll.dll issue ... C++ updating SQL Server ...

我有一个类似的ntdll。dll的问题……c++更新SQL Server…

I fixed it by using the SQL Server OBDC connection rather than the SQL Server Native Client 11.0

我使用SQL Server OBDC连接修复它,而不是使用SQL Server原生客户端11.0。

We're trying to see why as it is working for some updates and not others ... but it works all the time for reading.

我们正在尝试了解为什么它会为一些更新而工作,而不是其他的……但它一直都是用来阅读的。

#8


0  

All the above solutions didn't work for me, but this one work.

上面所有的解决方案对我都不起作用,但是这一项工作。

Copy dte*.olb from C:\Program Files (X86)\Common Files\Microsoft Shared\MSEnv to C:\Program Files X86\Microsoft Visual Studio 9.0\Common7\IDE.

拷贝资料。从C:\Program Files olb(X86)\共同微软文件\ \ MSEnv C:\Program Files X86 \ 9.0 \ Common7 \ Microsoft Visual Studio IDE。

http://www.clausconrad.com/blog/the-application-cannot-start-running-visual-studio-as-administrator

http://www.clausconrad.com/blog/the-application-cannot-start-running-visual-studio-as-administrator

#9


0  

First launch devenv.exe with the /SafeMode option, then Uncheck the Allow macros to run from "Enviroment->Add-in/Macros Security" and test!

第一次启动devenv。使用/SafeMode选项,然后取消检查允许宏从“环境->插件/宏安全”运行,并测试!

#10


0  

The problem is due to path variable. setting path variable in Environmental variables to below 2048 characters worked for me.

问题是由于path变量。环境变量中设置路径变量为2048个字符为我工作。

#1


54  

It is working now!. This is what I did:

现在是工作!这就是我所做的:

Following the suggestion here:

这里的建议:

  1. Removed the key: [HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]. VS2012 loading but then crashing before I could do anything else (error in C:\Windows\syswow64\KERNELBASE.dll)
  2. 删除键:[HKEY_CURRENT_USER\ Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]。VS2012加载,但在我还没做其他事情之前就崩溃了(c:) windowssyswow64\ KERNELBASE.dll中的错误。
  3. Then I removed:
    • [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0]
    • 微软软件\[HKEY_CURRENT_USER \ 11.0 \ VisualStudio \]
    • [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config] and started again and is working fine.
    • [HKEY_CURRENT_USER\ microsoft\ VisualStudio\11.0_Config]然后重新启动,运行良好。
  4. 然后我删除了:[HKEY_CURRENT_USER\ microsoft\ VisualStudio\11.0] [HKEY_CURRENT_USER\ microsoft\ VisualStudio\11.0_Config],然后重新启动,运行良好。

I obviously lost all my settings but no big deal as I can now do some work! :)

很明显,我失去了所有的设置,但是没有什么大不了的,因为我现在可以做一些工作!:)

#2


20  

Running devenv.exe with the /SafeMode argument would probably have also fixed it.

devenv运行。exe与/SafeMode参数可能也会修复它。

#3


7  

I opened a different .sln and then went back to my faulting project and it loaded! Maybe something with a faulty close-down of the project

我打开了一个不同的。sln,然后回到我的错误项目,它加载了!可能是项目关闭的问题。

#4


2  

Removing all VS settings is a bit harsh unless all visual studio instances crash immediately.

删除所有VS设置有点苛刻,除非所有visual studio实例立即崩溃。

What probably happens when you encounter this is that Visual Studio opens the designer window that caused it to crash in the first place... this is often an extension, but it might also just be a bug in VS. For example: I sometimes experience this when working with LINQ-TO-SQL and have the database-schema designer open.

当您遇到这种情况时,可能会发生的是,Visual Studio打开了导致它首先崩溃的设计器窗口……这通常是一个扩展,但它也可能只是一个bug,例如:我在使用linqto - sql时有时会遇到这种情况,并且打开了数据库模式设计器。

The easiest resolution is to simply remove the SUO file with the solution settings, and open the SLN. You can then do whatever you want, except go to the file with the issue- once you know what that file is, you can fix it (f.ex. in the case of a DBML by simply removing it and regenerating it)

最简单的解决方法是简单地用解决方案设置删除SUO文件,然后打开SLN。然后你可以做任何你想做的事情,除非你去处理这个问题——一旦你知道那个文件是什么,你就可以修复它(f.ex)。在DBML的情况下,只需删除它并重新生成它)

#5


2  

Just copy all dte*.olb files, from C:\Program Files (X86)\Common Files\Microsoft Shared\MSEnv to C:\Program Files X86\Microsoft Visual Studio 9.0\Common7\IDE.

复制所有的终端设备。olb文件,从C:\Program Files(X86)\共同微软文件\ \ MSEnv C:\Program Files X86 \ 9.0 \ Common7 \ Microsoft Visual Studio IDE。

From https://mycodepad.wordpress.com/2013/12/07/visual-studio-2012-4-run-as-administrator-the-application-cannot-start-error/

从https://mycodepad.wordpress.com/2013/12/07/visual工作室- 2012 4 -运行-作为管理员error/——应用程序——不能启动

#6


2  

Simply running as Administrator seemed to be enough to get it running for me, at least temporarily.

仅仅作为管理员运行似乎足够让它为我运行,至少是暂时的。

#7


0  

I had a similar ntdll.dll issue ... C++ updating SQL Server ...

我有一个类似的ntdll。dll的问题……c++更新SQL Server…

I fixed it by using the SQL Server OBDC connection rather than the SQL Server Native Client 11.0

我使用SQL Server OBDC连接修复它,而不是使用SQL Server原生客户端11.0。

We're trying to see why as it is working for some updates and not others ... but it works all the time for reading.

我们正在尝试了解为什么它会为一些更新而工作,而不是其他的……但它一直都是用来阅读的。

#8


0  

All the above solutions didn't work for me, but this one work.

上面所有的解决方案对我都不起作用,但是这一项工作。

Copy dte*.olb from C:\Program Files (X86)\Common Files\Microsoft Shared\MSEnv to C:\Program Files X86\Microsoft Visual Studio 9.0\Common7\IDE.

拷贝资料。从C:\Program Files olb(X86)\共同微软文件\ \ MSEnv C:\Program Files X86 \ 9.0 \ Common7 \ Microsoft Visual Studio IDE。

http://www.clausconrad.com/blog/the-application-cannot-start-running-visual-studio-as-administrator

http://www.clausconrad.com/blog/the-application-cannot-start-running-visual-studio-as-administrator

#9


0  

First launch devenv.exe with the /SafeMode option, then Uncheck the Allow macros to run from "Enviroment->Add-in/Macros Security" and test!

第一次启动devenv。使用/SafeMode选项,然后取消检查允许宏从“环境->插件/宏安全”运行,并测试!

#10


0  

The problem is due to path variable. setting path variable in Environmental variables to below 2048 characters worked for me.

问题是由于path变量。环境变量中设置路径变量为2048个字符为我工作。