问题描述
***问题/疑问
这是我第一次尝试使用IntelliTrace,但运气不佳.
This is my first foray into using IntelliTrace and I'm not having any luck getting it to work.
我正在调试ASP.NET MVC应用程序.
I am debugging an ASP.NET MVC application.
我想念什么(除了几个关键神经元?)
我运行我的应用程序,单击一下,然后单击调试" |开始". IntelliTrace | IntelliTrace事件.
出现IntelliTrace窗口.
当我单击全部中断"时,它说:
IntelliTrace没有为此调试会话收集数据.
项目类型可能不受支持,或者您正在调试的进程可能已附加到IntelliTrace或已在禁用IntelliTrace的情况下启动. 在Visual Studio中重新启动调试会话可以解决此问题. 请注意,IntelliTrace 附加到已在运行的进程时不支持.
如果您已为InteliTrace [sic]录音选择了自定义位置,请确保该位置在调试过程中可写.
我已经检查了消息中的每个条件:
(显然)支持ASP.NET MVC.
我正在本地使用IIS.
在开始调试之前,我已启用IntelliTrace.
我没有附加到已经在运行的进程中.
我有一个用于录制的自定义位置-使用启用该功能时提供的默认位置,并且我以管理员身份运行Visual Studio(因此不应有任何文件访问问题.)
***环境/我尝试过的事情
为"IntelliTrace事件和呼叫信息"启用并配置了IntelliTrace.
我正在具有16GB RAM的Windows 7 Professional SP1 x64上运行Visual Studio 2010 Ultimate(版本10.0.40219.1 SP1Rel).
我的网络配置包含以下几行:
< configuration>
...
< system.web>
...
< compilation debug ="true"; targetFramework ="4.0">
...
</compilation>
...
</system.web>
...
</configuration>
我在其他web.config文件中看不到任何可能覆盖< compilation debug ="true">的文件.设置.
在IIS中,我的应用程序在"DefaultAppPool"中运行.
DefaultAppPool显示开始","v4.0",集成","ApplicationPoolIdentity","23"
根据遇到相同问题的人的几篇文章,我修改了C:\ Windows \ System32 \ inetsrv \ Config \ applicationHost.config,使其包含以下内容:
What am I missing (other than a few critical neurons?)
I run my app, click around a bit, then click Debug | IntelliTrace | IntelliTrace Events.
The IntelliTrace window appears.
When I click Break All, it says:
IntelliTrace is not collecting data for this debugging session.
The project type may not be supported or the process you are debugging may have been either attached to or launched with IntelliTrace disabled. Restarting the debugging session within Visual Studio may solve this. Please note that IntelliTrace is not supported when attaching to a process that is already running.
If you have selected a custom location for InteliTrace [sic] recordings, please make sure it is writable by the process being debugged.
I have checked each of the conditions in the message:
ASP.NET MVC is (apparently) supported.
I'm running using IIS locally.
I enabled IntelliTrace before I started debugging.
I did not attach to a process that was already running.
I have a custom location for recordings--using the default location provided when you enabled that feature and I am running Visual Studio as an Administrator (so there shouldn't be any file access issues.)
*** Environment/What I've Tried
IntelliTrace is enabled and configured for "IntelliTrace events and call information".
I am running Visual Studio 2010 Ultimate (Version 10.0.40219.1 SP1Rel) on Windows 7 Professional SP1 x64 with 16GB of RAM.
My web config contains the following lines:
<configuration>
...
<system.web>
...
<compilation debug="true" targetFramework="4.0">
...
</compilation>
...
</system.web>
...
</configuration>
I don't see anything in other web.config files that might override the <compilation debug="true"> setting.
In IIS, my app is running in "DefaultAppPool".
DefaultAppPool shows "Started", "v4.0", "Integrated", "ApplicationPoolIdentity", "23"
Based on a couple of articles by people who have had my same problem, I have modified my C:\Windows\System32\inetsrv\Config\applicationHost.config to include the following:
< processModel identityType ="ApplicationPoolIdentity"; loadUserProfile ="true"; setProfileEnvironment =真". />
<processModel identityType="ApplicationPoolIdentity" loadUserProfile="true" setProfileEnvironment="true" />
在上下文中显示如下:
< applicationPools>
< add name =" DefaultAppPool" autoStart ="true"; enable32BitAppOnWin64 ="true"; managedRuntimeVersion ="v4.0"; startMode ="OnDemand">
< processModel identityType =" ApplicationPoolIdentity" loadUserProfile ="true"; setProfileEnvironment =真". />
< recycling>
< periodicRestart>
< schedule>
<清除/>
</schedule>
</periodicRestart>
</recycling>
< processModel loadUserProfile =" true" />
</add>
< applicationPoolDefaults>
< processModel identityType ="ApplicationPoolIdentity"; loadUserProfile ="true"; setProfileEnvironment =假". />
</applicationPoolDefaults>
</applicationPools>
我已经从命令行运行IISReset,以确保IIS接受了我的更改.
最后,我重新启动了盒子,因为我想不起其他任何事情.
不高兴
我想念什么?
Shown, in context, below:
<applicationPools>
<add name="DefaultAppPool" autoStart="true" enable32BitAppOnWin64="true" managedRuntimeVersion="v4.0" startMode="OnDemand">
<processModel identityType="ApplicationPoolIdentity" loadUserProfile="true" setProfileEnvironment="true" />
<recycling>
<periodicRestart>
<schedule>
<clear />
</schedule>
</periodicRestart>
</recycling>
<processModel loadUserProfile="true" />
</add>
<applicationPoolDefaults>
<processModel identityType="ApplicationPoolIdentity" loadUserProfile="true" setProfileEnvironment="false" />
</applicationPoolDefaults>
</applicationPools>
I have run IISReset from the commandline to ensure that IIS picked up my changes.
And finally, I've rebooted the box, because I just can't think of anything more to do.
No joy.
What am I missing?
谢谢.
推荐答案
感谢您在MSDN论坛中发帖.
Thank you for posting in the MSDN forum.
IntelliTrace没有为此调试会话收集数据.
可能不支持项目类型,或者您正在调试的过程可能已附加到IntelliTrace或在禁用IntelliTrace的情况下启动.重新启动Visual Studio中的调试会话可能会解决此问题.请注意,不支持IntelliTrace 附加到已经在运行的进程时.
如果您为InteliTrace [sic]录音选择了自定义位置,请确保该位置可被调试过程写入.
IntelliTrace is not collecting data for this debugging session.
The project type may not be supported or the process you are debugging may have been either attached to or launched with IntelliTrace disabled. Restarting the debugging session within Visual Studio may solve this. Please note that IntelliTrace is not supported when attaching to a process that is already running.
If you have selected a custom location for InteliTrace [sic] recordings, please make sure it is writable by the process being debugged.
只是为了清楚地说明此问题,所有ASP.NET MVC应用程序是否都存在相同的问题?如何在具有相同环境的其他计算机上调试它?
Just to make this issue clearly, whether all ASP.NET MVC apps have the same issue? How about debugging it in other machine with the same Environment?
基于遇到相同问题的人的几篇文章,我将C:\ Windows \ System32 \ inetsrv \ Config \ applicationHost.config修改为包括以下内容:
…
如果可能的话,建议您检查已更改的.config文件,有关详细步骤,请参见以下知识库文章:
If possible, I suggest you check the .config file you have changed, for detailed steps, please see this KB:
Windows 7 SP1导致IntelliTrace收集在IIS上失败.
最好的问候
这篇关于ASP.NET MVC +"IntelliTrace没有为该调试会话收集数据."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!