Visual Studio 已停止工作 - 在 Win 7 上

发布于 2024-09-01 13:51:35 字数 226 浏览 5 评论 0原文

我有 Win 7 企业版。如果我在 VS 2008/2010 上打开任何 .cs 文件,它会在对话框中显示一条消息“Visual Studio 已停止工作”。有两个按钮“调试”和“关闭程序”。调试按钮使用汇编代码在调试模式下启动 devenv,因为我没有相同的 pdb 文件。

还有另一台具有相同配置的机器,其中 VS 2008/2010 Ultimate 运行良好。即使重装Win 7也没有解决问题。知道为什么会这样吗?

I have Win 7 Enterprise. If i open any .cs file on VS 2008/2010 it gives a message " Visual Studio has stopped working" on a dialog box. There are two buttons "Debug" and "close program". Debug button starts devenv in debug mode with assembly code as i do not have the pdb file for the same.

There is another machine with same configuration where the VS 2008/2010 Ultimate works fine. Even reinstalling Win 7 did not solve the problem. Any idea why it is happening?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

人│生佛魔见 2024-09-08 13:51:35

尝试使用一些标准 VS 故障排除步骤:

  • 清理解决方案
  • 删除/重命名 VS 创建的解决方案中的所有文件,即所有 .ncb、.suo、.user 文件
  • 启动 Visual Studio 并禁用所有加载项: devenv.exe /SafeMode
  • 重置所有设置:工具 ->导入/导出设置->重置所有设置
  • 删除 HKCU:\Software\Micosoft\VisualStudio\9.0,然后重新启动 Visual Studio
  • 通过“添加/删除程序”修复 Visual Studio 安装

Try with some standard VS troubleshooting steps:

  • Clean the solution
  • Delete / rename all files in your solution created by VS, i.e. all .ncb, .suo, .user files
  • Launch Visual Studio with all add-ins disabled: devenv.exe /SafeMode
  • Reset All Settings: Tools -> Import / Export Settings -> Reset All Settings
  • Delete HKCU:\Software\Micosoft\VisualStudio\9.0 and then restart Visual Studio
  • Repair the Visual Studio installation through Add/Remove Programs
寒冷纷飞旳雪 2024-09-08 13:51:35

最近也遇到了同样的问题,网上也没有太多帮助。所以我认为这可能是一个简单的解决方案。我重新安装了 Visual Studio 几次但没有成功。最后,我卸载 .NET Framework 和 Visual Studio,重新启动并重新安装。

效果很好!

我认为这可能对某人有帮助。

Recently I had the same problem, there is not much help on the Internet. So I thought this could be an easy fix. I re-install Visual Studio Several times but no luck. Finally, I uninstall .NET Framework along with Visual Studio, re-boot and re-install.

It worked fine !!

I thought it might help someone.

自在安然 2024-09-08 13:51:35

VS 2012 停止工作

  • 我无法打开项目或创建新项目而不崩溃
  • 我收到此错误...

    System.ComponentModel.Composition.ImportCardinalityMismatchException 未处理
      消息=未找到与约束匹配的导出: 
        ContractName Microsoft.VisualStudio.Language.Intellisense.IGlyphService
        requiredTypeIdentity Microsoft.VisualStudio.Language.Intellisense.IGlyphService
      内部异常:
    

但是,如上所述,这对我有用:

  • 在禁用所有加载项的情况下启动 Visual Studio:

    devenv.exe /安全模式
    
  • 重置所有设置:工具 ->导入/导出设置->重置所有设置

VS 2012 Stopped Working

  • I couldn't open a project or create a new one without it crashing
  • I was getting this error...

    System.ComponentModel.Composition.ImportCardinalityMismatchException was unhandled
      Message=No exports were found that match the constraint: 
        ContractName    Microsoft.VisualStudio.Language.Intellisense.IGlyphService
        RequiredTypeIdentity    Microsoft.VisualStudio.Language.Intellisense.IGlyphService
      InnerException:
    

However, as mentioned above this worked for me:

  • Launch Visual Studio with all add-ins disabled:

    devenv.exe /SafeMode
    
  • Reset All Settings: Tools -> Import / Export Settings -> Reset All Settings

倾听心声的旋律 2024-09-08 13:51:35

嘿,我前段时间也遇到过同样的问题,但当我安装此补丁修复后就解决了。

在这里查看 -
http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails。 aspx?DownloadID=26662

Hey i had the same problem some time back but was solved when i installed this patch fix.

Check it out here -
http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=26662.

执着的年纪 2024-09-08 13:51:35

对我来说......我之前安装的扩展之一是罪魁祸首。该扩展是某种代码反射器。当我前进时,该工具设法减慢我的调试速度。并使Visual Studio 2012不断崩溃。所以我的建议是要小心你安装的工具和扩展......尤其是那些不是由微软自己创建的。

For me ... one of extension I installed earlier is the culprit. That extension is some sort of code reflector. That tool manage to slow down my debugging when i step forward. And make visual studio 2012 constantly crashing. So my advice is be careful what tools and extensions you install... especially those that are not created by Microsoft themselves.

七度光 2024-09-08 13:51:35

就我而言,崩溃是由并行项目构建引起的。转到 Options -> 后项目和解决方案 ->构建并运行并将并行项目构建的最大数量设置为1,崩溃消失了。

In my case the crash was caused by the parallel project builds. After went to Options -> Projects and Solutions -> Build and Run and set maximum number of parallel project builds to 1, the crash was gone.

顾忌 2024-09-08 13:51:35
  1. 如果缺少对异步方法和等待者的调用,即使在代码中也可能存在多个问题。
  2. 如果从代码角度来看一切似乎都正确,则清理解决方案并从所有项目中删除所有 obj 和 bin 填充。再次开始构建解决方案。
    这在我的场景中多次起作用。
  1. There could be multiple issues even in the code if the call to an async method an awaiter is missing.
  2. If everything seems to correct from code-wise then clean the solution and delete all the obj and bin fill from all project. Start building the solution again.
    This worked multiple times in my scenario.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文