在托管Windows服务上没有Visual Studio的框上运行IntelliTrace

时间:2011-12-21 11:33:23

标签: windows-services intellitrace

尝试在64位Windows 7安装下的托管Windows服务上运行IntelliTrace时,我一直收到同样的错误

  

.NET Runtime版本4.0.30319.239 - 在此过程中加载探查器失败   CoCreateInstance的。 Profiler CLSID:   '{301EC75B-AD5A-459C-A4C4-911C878FA196}'。 HRESULT:0x800700c1。   进程ID(十进制):3772。消息ID:[0x2504]。

我引用的文章作为来源:http://blogs.msdn.com/b/msaffer/archive/2011/02/23/using-intellitrace-with-services.aspx

有没有人尝试过这么大的成功?

1 个答案:

答案 0 :(得分:0)

您引用的MSDN博客文章假设您已在框中安装了VS 2010。如果没有VS 2010,则不支持Intellitrace。实际上,错误消息中的CLSID指向“C:\ Program Files \ Microsoft Visual Studio 10.0 \ Team Tools \ TraceDebugger Tools \ TraceLogProfiler.dll”,这显然是VS安装的一部分。

还有另一篇博文here声称解决了这个问题。你可以试试。