简体   繁体   English

如何阻止NCover劫持每个.NET程序集?

[英]How do I stop NCover from hijacking every .NET assembly?

I know that this, strictly speaking, is not a programming question, but I think the only people who can answer it are programmers. 我知道严格地说,这不是编程问题,但是我认为唯一可以回答这个问题的人就是程序员。

I've never had this happen before, but on one workstation where I have NCover installed, it seems to be intercepting every .NET assembly I load. 我以前从未发生过这种情况,但是在安装了NCover的一个工作站上,它似乎正在拦截我加载的每个.NET程序集。 For example, after installing it, suddenly it takes several minutes to load any .NET application; 例如,安装后,突然需要几分钟的时间才能加载任何.NET应用程序。 .NET services fail to start because they time out; .NET服务无法启动,因为它们超时。 NCover itself even takes minutes to load. NCover本身甚至需要几分钟来加载。

What's going on here? 这里发生了什么? I opened Process Explorer to look at some of these and found that my assemblies were referring to NCover DLLs and such, especially pertaining to mscorlib. 我打开Process Explorer来查看其中的一些内容,发现我的程序集引用的是NCover DLL等,尤其是涉及mscorlib的DLL。

Has anyone had this happen before? 有人发生过吗? I'm at a loss. 我很茫然。

Looks like things didn't get cleaned up correctly after running coverage on IIS or a service. 在IIS或服务上运行覆盖范围后,似乎无法正确清除所有内容。 Check out HKLM\\SYSTEM\\CurrentControlSet\\Control\\SessionManager\\Environment in your registry. 在注册表中签出HKLM \\ SYSTEM \\ CurrentControlSet \\ Control \\ SessionManager \\ Environment。 If Cor_Enable_Profiling and Cor_Profiler are there as keys, you're going to want to delete them. 如果Cor_Enable_Profiling和Cor_Profiler作为密钥存在,您将要删除它们。 Also, you'll want to delete NCover_Pid, NCover_Admin, COMPLUS_ProfAPI_ProfilerCompatibilitySetting, NCover_Process_Module, and NCover_All if they're there. 另外,如果要删除NCover_Pid,NCover_Admin,COMPLUS_ProfAPI_ProfilerCompatibilitySetting,NCover_Process_Module和NCover_All,则需要删除它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM