简体   繁体   English

带有WCF的CLR Profiler不适用于特定服务

[英]CLR Profiler with WCF doesn't work for specific service

I need to profile a WCF service, but I get the message "Waiting for service to start common language runtime", it only occurs with this particular service; 我需要分析WCF服务,但收到消息“等待服务启动公共语言运行时”,该消息仅在此特定服务中出现; when I tried with other WCF services, it works fine. 当我尝试使用其他WCF服务时,效果很好。 I was wondering if I should configure something in the wcf to allow the profile. 我想知道是否应该在wcf中配置一些内容以允许配置文件。 Both services run with the same account(admin) and the .net framework version of both service is 3.5. 两种服务都使用相同的account(admin)运行,两种服务的.net Framework版本均为3.5。 Perhaps, I should set something in the config file? 也许,我应该在配置文件中设置一些内容? I don't know why only in this service the clr profiler doesn't work. 我不知道为什么仅在此服务中,clr探查器不起作用。 The operating system is windows 2003 server. 操作系统是Windows 2003 Server。

I'll really appreciate every answer. 我会很感激每个答案。

Thanks in advance. 提前致谢。

您可以将服务作为.exe运行并在那里进行配置文件吗?

The profiler should not really interfere with the service and no matter what you put in the config file, the profiler should work. 探查器不应真正干扰服务,并且无论您将什么放在配置文件中,探查器均应正常工作。 Since the profiler hooks just about every method call in the CLR, you might see various sorts of concurrency issues that you would not normally see during standard execution; 由于事件探查器几乎钩住了CLR中的每个方法调用,因此您可能会看到各种并发问题,这些问题通常是在标准执行期间通常不会看到的。 so does your service utilize threading or is it doing something special during startup? 那么您的服务是利用线程还是在启动期间做一些特别的事情?

Of course the CLR profiler might also have some bugs in it, so trying with another profiler might also get you what you want - there are several free options out there. 当然,CLR探查器中可能还包含一些错误,因此尝试使用另一个探查器也可能会获得所需的东西-那里有几个免费选项。

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

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