以前听说可以用CLR Profile 调试.net,但是按照网上的说明当下来后,运行时,获取当前进程GetProcessesByName()老是报错,放在其他机器上却没有问题,调试ASP.NET时要把machine.config 中的
<processModel enable="true" timeout="Infinite" idleTimeout="Infinite" shutdownTimeout="0:00:05" requestLimit="Infinite" requestQueueLimit="5000" restartQueueLimit="10" memoryLimit="60" webGarden="false" cpuMask="0xffffffff" userName="SYSTEM" password="AutoGenerate" logLevel="Errors" clientConnectedCheck="0:00:05" comAuthenticationLevel="Connect" comImpersonationLevel="Impersonate" responseDeadlockInterval="00:03:00" maxWorkerThreads="20" maxIoThreads="20"/>

username改为system.


username改为system.