在VS2012 RC中不能启动调试器?

时间:2022-06-10 20:54:14

Configuration:

配置:

  • Windows 7, 64 bit
  • Windows 7,64位
  • Microsoft Visual Studio Professional 2012 RC Version 11.0.50522.1 RCREL
  • 微软Visual Studio专业2012 RC版11.0.50522.1 RCREL。
  • Running VS in administrator mode
  • 在管理员模式下运行VS。
  • The VS solution contains a web application, with target: .NET Framework 4.
  • VS解决方案包含一个web应用程序,目标是。net Framework 4。

When I press F5, the solution builds... and nothing else happens.

当我按F5时,解决方案构建…和什么发生。

  • Happens with both IIS or the VS Dev Server.
  • 发生在IIS或VS开发服务器上。
  • Happens with Platform Target of "Any CPU" or "x86"
  • 使用“任何CPU”或“x86”的平台目标

If instead, I use the Debug / Attach to Process... menu, after a few seconds, I get:

如果相反,我使用调试/附加到进程…菜单,几秒钟后,我得到:

  • "Debugger is Busy" - Debugger is performing a remote operation that is taking longer than expected. This dialog stay until I click "Terminate" and confirm it.
  • “调试器很忙”——调试器执行的远程操作比预期的要长。这个对话框一直保持到我点击“终止”并确认它。
  • Then this dialog appears: "Microsoft Visual Studio" "Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor named [COMPUTER NAME]. The network connection to the Visual Studio Remote Debugger has been closed."
  • 然后这个对话框出现了:“Microsoft Visual Studio”“无法连接到Microsoft Visual Studio远程调试监视器(计算机名)”。与Visual Studio远程调试器的网络连接已经关闭。
  • After clicking OK, the 'normal' "Attach to Process" window finally shows up. In it, the list of "Available Processes" is empty.
  • 点击OK后,“正常”“附加到进程”窗口最终出现。在其中,“可用流程”列表为空。

Any suggestions or clues?

任何建议或线索吗?

The main points that I wonder about:

我想知道的要点是:

  • Why is the list of processes empty? It is not surprising that the debugger does not work if it cannot see any processes.
  • 为什么进程列表为空?如果调试器看不到任何进程,那么调试器就不起作用,这一点也不奇怪。
  • Why is it trying to do "remote" debugging, when it is just accessing the local computer?
  • 当它正在访问本地计算机时,为什么要进行“远程”调试呢?

(Cross posted on social.msdn)

(横贴在social.msdn)

16 个解决方案

#1


5  

I had the same problem in VS 2012 (not the RC, but the final release) using a VS 2010 project. It would build fine, but the debugger would not start. So, I modified the solution file:

我在VS 2012(不是RC,而是最终版本)使用VS 2010项目时遇到了同样的问题。它会构建良好,但是调试器不会启动。因此,我修改了解决方案文件:

Changed "Format Verion 11.00" to "Format Verion 12.00" And changed "# Visual Studio 2010" to "# Visual Studio 2012"

将“格式Verion 11.00”改为“格式Verion 12.00”,并将“# Visual Studio 2010”改为“# Visual Studio 2012”

It's a workaround for now until my company upgrades its projects to VS 2012.

直到我的公司把它的项目升级到VS 2012,这是一个暂时的工作。

#2


3  

I've got a similar setup and I'd followed all the suggestions here and on Microsoft Connect - none of which worked for me. The only thing that did work was renaming MSVSMON.EXE in the x64 folder to MSVSMON.EXE.OLD and copying in the file from the x86 folder in it's place. I'm not sure if there are any other implications in doing this but it seems to have solved the problem in my case.

我有一个类似的设置,我在这里和微软的连接上都遵循了所有的建议——没有一个对我有用。唯一能做的就是重命名MSVSMON。EXE在x64文件夹中的MSVSMON.EXE。旧的和复制的文件从x86文件夹在它的位置。我不确定这样做是否有其他影响,但它似乎已经解决了我的问题。

#3


3  

I eventually resolved this problem by deleting the msvsmon*.* entries in the \Windows\Prefetch folder. After doing so I could debug normally.

我最终通过删除msvsmon*来解决这个问题。* \Windows\Prefetch文件夹中的条目。在这样做之后,我可以正常地调试。

#4


2  

Ultimately, a Repair of the VS2012 resolved this issue for me. I followed the advice found at your social.msdn cross-post without any resolution (Devenv.exe /SafeMode /ResetSettings /ResetSkipPkgs and /Setup). Like you, my solution (VS 2010 SP1) also has a web application (targeting .NET 3.5), and the startup project is set to a winforms app. The ASP.NET development server did not start, nor did the app I was trying to debug.

最终,VS2012的修复解决了这个问题。我听从了你的社交建议。msdn跨站无任何分辨率(Devenv)。exe /SafeMode /ResetSettings /ResetSkipPkgs和/Setup)。和您一样,我的解决方案(VS 2010 SP1)也有一个web应用程序(针对。net 3.5),并且启动项目被设置为winforms应用程序。NET开发服务器没有启动,我尝试调试的应用程序也没有启动。

Note that this issue was also posted to Connect at this link (by you?). If anyone else sees this issue, the Connect folks are requesting running the Microsoft Visual Studio 2012 Feedback Tool to collect data. As I started the Repair process prior to finding the Connect issue, I did not and was not able to provide feedback to MS with logging.

注意,这个问题也被张贴在这个链接上(你?)如果有其他人看到这个问题,Connect人员请求运行Microsoft Visual Studio 2012反馈工具来收集数据。在找到连接问题之前,我开始了修复过程,但我没有,也无法向MS提供日志反馈。

#5


2  

Seen a similar issue when running both Visual Studio 2010 and Visual Studio 2012 at the same time. Closing Visual Studio 2010 allow the debugger to start working in Visual Studio 2012.

在同时运行Visual Studio 2010和Visual Studio 2012时也遇到了类似的问题。关闭Visual Studio 2010允许调试器开始在Visual Studio 2012中工作。

#6


1  

I had the same issue - starting debugger just told me what a good job it had made of the build and the decided that that was enough.

我有同样的问题——启动调试器刚刚告诉我,它做了什么好工作,然后决定这就足够了。

I feared the worst, but luckily for me a reboot fixed the problem.

我担心最坏的情况,但幸运的是,我重新启动了这个问题。

I know that this is therefore a pretty useless post in as far as offering help to anyone suffering with this issue, but I thought it was worth noting the point as it shows a) another person with the same problem so please fix it MS, and b) that sometimes a reboot fixes it so maybe that tells the maintainers something.

所以我知道这是一个非常无用的帖子就饱受这个问题的人们提供帮助,但我认为这是值得注意的,因为它显示了一个)点另一个人相同的问题请解决它女士,和b),有时一个重启修复它也许告诉维护者。

#7


1  

If you are opening a VS 2010 project with the new VS 2012 version it's probably your bin and obj folders that are causing the problem,deleting them solved the problem for me.Or you could clean your solution but I preferred manual deletion.

如果你正在使用新的VS 2012版本的VS 2010项目,那么可能是你的bin和obj文件夹导致了问题,删除它们解决了我的问题。或者你可以清理你的解决方案,但我喜欢手动删除。

#8


1  

I just closed and reopened VS. This seemed to fix my problem

我只是关闭并重新开放,而这似乎解决了我的问题。

#9


0  

On another computer, with the RTM of Visual Studio 2012, I opened an older project and found that I could not press F5 to start the application. All that seemed to happen was a message in the status bar on the bottom edge of the window: "This item does not support previewing".

在另一台电脑上,随着Visual Studio 2012的RTM,我打开了一个老项目,发现我无法按F5启动应用程序。所有这些似乎都是在窗口底部的状态栏上的一条消息:“这个项目不支持预览”。

This solution had two projects, and the correct one was bold in the Solution Explorer, presumably indicating that it was the startup project.

这个解决方案有两个项目,而正确的方案在解决方案资源管理器中是大胆的,这大概表明它是启动项目。

However, after selecting the project and choosing "Set as Startup Project" in the context menu, I was then able to use F5 to run and debug it.

但是,在选择项目并在上下文菜单中选择“Set as Startup project”之后,我就可以使用F5来运行和调试它了。

It turns out that the "This item does not support previewing" was nothing to do with the problem, but is a message that shows on the status bar whenever the item just selected in the Solution Explorer does does not support previewing.

事实证明,“这个项目不支持预览”与问题无关,而是当在解决方案资源管理器中选择的条目不支持预览时,在状态栏上显示的消息。

#10


0  

For what it's worth, I found that I received this error message when I had an entry missing in my hosts file. I am using local domain aliases and the one I was trying to debug with wasn't in hosts. Adding the missing entry solved the problem for me.

对于它的价值,我发现在我的主机文件中有一个条目丢失时,我收到了这个错误消息。我使用的是本地域别名,而我正在尝试调试的那个别名不在主机中。添加丢失的条目解决了我的问题。

#11


0  

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/——应用程序——不能启动

#12


0  

Just my two cents,

只是我两美分,

I have experienced this issue twice now and it turns out after all of the suggestions I tried, it was BitDefender on my local machine that was doing this. So my fix for this problem is to try adding in exceptions to the local security software into the firewall and AV parts of it. Tell it to ignore the msvsmon.exe and devenv.exe altogether and see what difference that makes.

我已经经历过两次这个问题了,在我尝试过的所有建议之后,我的本地机器上的BitDefender就是这么做的。因此,我解决这个问题的方法是尝试在防火墙和AV部分中添加本地安全软件的异常。告诉它忽略msvsmon。exe和devenv。一起来看看有什么不同。

Otherwise try ripping it off altogether and see if the it lets you debug your solution.

否则,尝试将它完全删除,看看它是否允许您调试您的解决方案。

You can see here for more info: http://forum.bitdefender.com/index.php?showtopic=37028

你可以在这里看到更多的信息:http://forum.bitdefender.com/index.php?

I installed the latest BitDefender version and all was fine for me.

我安装了最新的BitDefender版本,对我来说一切都没问题。

#13


0  

I personally encountered some comparable problem: Visual Studio 2010 did not begin debugging but froze.

我个人遇到了一些类似的问题:Visual Studio 2010没有开始调试,而是冻结了。

When I clicked VS it displayed a "Wait some more" or "Switch to" message box which didn't help me.

当我点击它时,它显示了一个“等待更多”或“切换到”没有帮助我的消息框。

Using a task manager I could kill the *.vshost.exe process which brought VS back to life but aborted the debugging. Launching the program without debugging started the application instantly.

使用任务管理器,我可以杀死*.vshost。exe进程将VS还原为生命,但中止了调试。启动程序而无需调试,立即启动应用程序。

Solution:

解决方案:

Disable the indexing service for your code directories! Either deactivate the index service or uncheck the folders in the Indexing Service control panel.

为您的代码目录禁用索引服务!要么取消索引服务,要么取消索引服务控制面板中的文件夹。

#14


0  

Had this problem for a C++ application. Looking at the devenv.exe events in ProcMon pointed me to it trying to load a Visual Assist configuration file, which I had in my disk cleanup zeal accidentally deleted. Removing and then installing the extension again fixed it for me.

对于c++应用程序有这个问题。看devenv。ProcMon的exe事件告诉我它试图加载一个可视化辅助配置文件,我在磁盘清理中意外删除了它。移除并安装扩展名再次为我修复它。

#15


-2  

I have fixed the same issue by checking off the "Enable the Visual Studio hosting process" option from the start-up project Properties->Debug - Enable Debuggers options

我已经解决了同样的问题,从启动项目属性——>调试——启用调试器选项中检查“启用Visual Studio托管进程”选项。

#16


-3  

All you have to do to fix this is go "Project > Set as StartUp Project" then hit F5 or the debug button and it will work!!!

你所要做的就是把这个“项目>设置为启动项目”,然后点击F5或调试按钮,它就可以工作了!!!

#1


5  

I had the same problem in VS 2012 (not the RC, but the final release) using a VS 2010 project. It would build fine, but the debugger would not start. So, I modified the solution file:

我在VS 2012(不是RC,而是最终版本)使用VS 2010项目时遇到了同样的问题。它会构建良好,但是调试器不会启动。因此,我修改了解决方案文件:

Changed "Format Verion 11.00" to "Format Verion 12.00" And changed "# Visual Studio 2010" to "# Visual Studio 2012"

将“格式Verion 11.00”改为“格式Verion 12.00”,并将“# Visual Studio 2010”改为“# Visual Studio 2012”

It's a workaround for now until my company upgrades its projects to VS 2012.

直到我的公司把它的项目升级到VS 2012,这是一个暂时的工作。

#2


3  

I've got a similar setup and I'd followed all the suggestions here and on Microsoft Connect - none of which worked for me. The only thing that did work was renaming MSVSMON.EXE in the x64 folder to MSVSMON.EXE.OLD and copying in the file from the x86 folder in it's place. I'm not sure if there are any other implications in doing this but it seems to have solved the problem in my case.

我有一个类似的设置,我在这里和微软的连接上都遵循了所有的建议——没有一个对我有用。唯一能做的就是重命名MSVSMON。EXE在x64文件夹中的MSVSMON.EXE。旧的和复制的文件从x86文件夹在它的位置。我不确定这样做是否有其他影响,但它似乎已经解决了我的问题。

#3


3  

I eventually resolved this problem by deleting the msvsmon*.* entries in the \Windows\Prefetch folder. After doing so I could debug normally.

我最终通过删除msvsmon*来解决这个问题。* \Windows\Prefetch文件夹中的条目。在这样做之后,我可以正常地调试。

#4


2  

Ultimately, a Repair of the VS2012 resolved this issue for me. I followed the advice found at your social.msdn cross-post without any resolution (Devenv.exe /SafeMode /ResetSettings /ResetSkipPkgs and /Setup). Like you, my solution (VS 2010 SP1) also has a web application (targeting .NET 3.5), and the startup project is set to a winforms app. The ASP.NET development server did not start, nor did the app I was trying to debug.

最终,VS2012的修复解决了这个问题。我听从了你的社交建议。msdn跨站无任何分辨率(Devenv)。exe /SafeMode /ResetSettings /ResetSkipPkgs和/Setup)。和您一样,我的解决方案(VS 2010 SP1)也有一个web应用程序(针对。net 3.5),并且启动项目被设置为winforms应用程序。NET开发服务器没有启动,我尝试调试的应用程序也没有启动。

Note that this issue was also posted to Connect at this link (by you?). If anyone else sees this issue, the Connect folks are requesting running the Microsoft Visual Studio 2012 Feedback Tool to collect data. As I started the Repair process prior to finding the Connect issue, I did not and was not able to provide feedback to MS with logging.

注意,这个问题也被张贴在这个链接上(你?)如果有其他人看到这个问题,Connect人员请求运行Microsoft Visual Studio 2012反馈工具来收集数据。在找到连接问题之前,我开始了修复过程,但我没有,也无法向MS提供日志反馈。

#5


2  

Seen a similar issue when running both Visual Studio 2010 and Visual Studio 2012 at the same time. Closing Visual Studio 2010 allow the debugger to start working in Visual Studio 2012.

在同时运行Visual Studio 2010和Visual Studio 2012时也遇到了类似的问题。关闭Visual Studio 2010允许调试器开始在Visual Studio 2012中工作。

#6


1  

I had the same issue - starting debugger just told me what a good job it had made of the build and the decided that that was enough.

我有同样的问题——启动调试器刚刚告诉我,它做了什么好工作,然后决定这就足够了。

I feared the worst, but luckily for me a reboot fixed the problem.

我担心最坏的情况,但幸运的是,我重新启动了这个问题。

I know that this is therefore a pretty useless post in as far as offering help to anyone suffering with this issue, but I thought it was worth noting the point as it shows a) another person with the same problem so please fix it MS, and b) that sometimes a reboot fixes it so maybe that tells the maintainers something.

所以我知道这是一个非常无用的帖子就饱受这个问题的人们提供帮助,但我认为这是值得注意的,因为它显示了一个)点另一个人相同的问题请解决它女士,和b),有时一个重启修复它也许告诉维护者。

#7


1  

If you are opening a VS 2010 project with the new VS 2012 version it's probably your bin and obj folders that are causing the problem,deleting them solved the problem for me.Or you could clean your solution but I preferred manual deletion.

如果你正在使用新的VS 2012版本的VS 2010项目,那么可能是你的bin和obj文件夹导致了问题,删除它们解决了我的问题。或者你可以清理你的解决方案,但我喜欢手动删除。

#8


1  

I just closed and reopened VS. This seemed to fix my problem

我只是关闭并重新开放,而这似乎解决了我的问题。

#9


0  

On another computer, with the RTM of Visual Studio 2012, I opened an older project and found that I could not press F5 to start the application. All that seemed to happen was a message in the status bar on the bottom edge of the window: "This item does not support previewing".

在另一台电脑上,随着Visual Studio 2012的RTM,我打开了一个老项目,发现我无法按F5启动应用程序。所有这些似乎都是在窗口底部的状态栏上的一条消息:“这个项目不支持预览”。

This solution had two projects, and the correct one was bold in the Solution Explorer, presumably indicating that it was the startup project.

这个解决方案有两个项目,而正确的方案在解决方案资源管理器中是大胆的,这大概表明它是启动项目。

However, after selecting the project and choosing "Set as Startup Project" in the context menu, I was then able to use F5 to run and debug it.

但是,在选择项目并在上下文菜单中选择“Set as Startup project”之后,我就可以使用F5来运行和调试它了。

It turns out that the "This item does not support previewing" was nothing to do with the problem, but is a message that shows on the status bar whenever the item just selected in the Solution Explorer does does not support previewing.

事实证明,“这个项目不支持预览”与问题无关,而是当在解决方案资源管理器中选择的条目不支持预览时,在状态栏上显示的消息。

#10


0  

For what it's worth, I found that I received this error message when I had an entry missing in my hosts file. I am using local domain aliases and the one I was trying to debug with wasn't in hosts. Adding the missing entry solved the problem for me.

对于它的价值,我发现在我的主机文件中有一个条目丢失时,我收到了这个错误消息。我使用的是本地域别名,而我正在尝试调试的那个别名不在主机中。添加丢失的条目解决了我的问题。

#11


0  

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/——应用程序——不能启动

#12


0  

Just my two cents,

只是我两美分,

I have experienced this issue twice now and it turns out after all of the suggestions I tried, it was BitDefender on my local machine that was doing this. So my fix for this problem is to try adding in exceptions to the local security software into the firewall and AV parts of it. Tell it to ignore the msvsmon.exe and devenv.exe altogether and see what difference that makes.

我已经经历过两次这个问题了,在我尝试过的所有建议之后,我的本地机器上的BitDefender就是这么做的。因此,我解决这个问题的方法是尝试在防火墙和AV部分中添加本地安全软件的异常。告诉它忽略msvsmon。exe和devenv。一起来看看有什么不同。

Otherwise try ripping it off altogether and see if the it lets you debug your solution.

否则,尝试将它完全删除,看看它是否允许您调试您的解决方案。

You can see here for more info: http://forum.bitdefender.com/index.php?showtopic=37028

你可以在这里看到更多的信息:http://forum.bitdefender.com/index.php?

I installed the latest BitDefender version and all was fine for me.

我安装了最新的BitDefender版本,对我来说一切都没问题。

#13


0  

I personally encountered some comparable problem: Visual Studio 2010 did not begin debugging but froze.

我个人遇到了一些类似的问题:Visual Studio 2010没有开始调试,而是冻结了。

When I clicked VS it displayed a "Wait some more" or "Switch to" message box which didn't help me.

当我点击它时,它显示了一个“等待更多”或“切换到”没有帮助我的消息框。

Using a task manager I could kill the *.vshost.exe process which brought VS back to life but aborted the debugging. Launching the program without debugging started the application instantly.

使用任务管理器,我可以杀死*.vshost。exe进程将VS还原为生命,但中止了调试。启动程序而无需调试,立即启动应用程序。

Solution:

解决方案:

Disable the indexing service for your code directories! Either deactivate the index service or uncheck the folders in the Indexing Service control panel.

为您的代码目录禁用索引服务!要么取消索引服务,要么取消索引服务控制面板中的文件夹。

#14


0  

Had this problem for a C++ application. Looking at the devenv.exe events in ProcMon pointed me to it trying to load a Visual Assist configuration file, which I had in my disk cleanup zeal accidentally deleted. Removing and then installing the extension again fixed it for me.

对于c++应用程序有这个问题。看devenv。ProcMon的exe事件告诉我它试图加载一个可视化辅助配置文件,我在磁盘清理中意外删除了它。移除并安装扩展名再次为我修复它。

#15


-2  

I have fixed the same issue by checking off the "Enable the Visual Studio hosting process" option from the start-up project Properties->Debug - Enable Debuggers options

我已经解决了同样的问题,从启动项目属性——>调试——启用调试器选项中检查“启用Visual Studio托管进程”选项。

#16


-3  

All you have to do to fix this is go "Project > Set as StartUp Project" then hit F5 or the debug button and it will work!!!

你所要做的就是把这个“项目>设置为启动项目”,然后点击F5或调试按钮,它就可以工作了!!!