<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Debugging Your Profiler I: Activation</title><link>http://blogs.msdn.com/davbr/archive/2007/12/11/debugging-your-profiler-i-activation.aspx</link><description>This is the first of some tips to help you debug your profiler.&amp;#160; Note that these tips assume you're using CLR 2.x (see this entry for info on how CLR version numbers map to .NET Framework version numbers).&amp;#160; In today's post, I address a frequent</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Interesting Finds: December 12, 2007</title><link>http://blogs.msdn.com/davbr/archive/2007/12/11/debugging-your-profiler-i-activation.aspx#6747744</link><pubDate>Wed, 12 Dec 2007 18:11:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6747744</guid><dc:creator>Jason Haley</dc:creator><description /></item><item><title>re: Debugging Your Profiler I: Activation</title><link>http://blogs.msdn.com/davbr/archive/2007/12/11/debugging-your-profiler-i-activation.aspx#6751633</link><pubDate>Thu, 13 Dec 2007 00:52:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6751633</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt; &amp;nbsp;thank you for the article. We've been developing .NET monitoring solution based on profiler API for a few years so far and we had a couple of cases when profiler just did not start in the customer environment. Both times we've seen this in MCMS 2002 environment. MCMS installs additional ISAPI filters etc.. So may be that was the reason. It is interesting, though, that both times there were no errors from CLR (and that usually happens when CLR has not enough permissions or it can not find profiler for some other reason). And the last time we have confirmed that both env variables are in w3wp process, mscorlib is there.. And still it looked like CLR did not even try to load the profiler. Any chance you've passed through such a scenario?&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Alex &lt;/p&gt;</description></item><item><title>re: Debugging Your Profiler I: Activation</title><link>http://blogs.msdn.com/davbr/archive/2007/12/11/debugging-your-profiler-i-activation.aspx#6752179</link><pubDate>Thu, 13 Dec 2007 01:41:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6752179</guid><dc:creator>davbr</dc:creator><description>&lt;p&gt;Hi, Alex! &amp;nbsp;It's hard for me to imagine likely causes of what you described, other than what's already in this post. &amp;nbsp;It is true that, in extreme out-of-memory conditions, the CLR won't even bother to try loading your profiler. &amp;nbsp;But these are really extreme--this is when the OS heap manager simply refuses any more requests. &amp;nbsp;So I'd expect you'd see much worse problems if that were the case. &amp;nbsp;Also, I wonder if the CLR itself is simply not loaded into your worker process until the first request it services (I forget if the worker process loads the CLR on startup, or only lazily at first request time). &amp;nbsp;Certainly, if the CLR isn't loaded yet, then your profiler won't either.&lt;/p&gt;
</description></item><item><title>re: Debugging Your Profiler I: Activation</title><link>http://blogs.msdn.com/davbr/archive/2007/12/11/debugging-your-profiler-i-activation.aspx#6753774</link><pubDate>Thu, 13 Dec 2007 04:37:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6753774</guid><dc:creator>Mithun</dc:creator><description>&lt;p&gt;Very nice and informative post. &lt;/p&gt;
&lt;p&gt;In my experience, the most common causes of profiler load failures are - &lt;/p&gt;
&lt;p&gt;1. Forgetting to register your COM profiler DLL using regsvr32.&lt;/p&gt;
&lt;p&gt;2. Incorrectly implementing your COM profiler DLL's DllRegisterServer() method. &lt;/p&gt;
&lt;p&gt;3. Not setting the required environment variables or setting them incorrectly.&lt;/p&gt;
&lt;p&gt;Very very rarely have I seen a profiler load failure because of a CLR bug. &lt;/p&gt;</description></item><item><title>re: Debugging Your Profiler I: Activation</title><link>http://blogs.msdn.com/davbr/archive/2007/12/11/debugging-your-profiler-i-activation.aspx#6981039</link><pubDate>Fri, 04 Jan 2008 19:59:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6981039</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt; &amp;nbsp;Thanks for the answer. I was out for vacation, then Christmas etc.. The interesting thing is that CLR was loaded. We've checked presense of mscorlib.dll in the process so definetely it should be there. Ok.. Hopefully we'll not see this again)&lt;/p&gt;
&lt;p&gt;-Alex&lt;/p&gt;</description></item><item><title>re: Debugging Your Profiler I: Activation</title><link>http://blogs.msdn.com/davbr/archive/2007/12/11/debugging-your-profiler-i-activation.aspx#8975830</link><pubDate>Fri, 03 Oct 2008 22:17:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8975830</guid><dc:creator>Sriram Devadas</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;I wrote a profiler (using the API) to trace calls filtered for our namespaces.&lt;/p&gt;
&lt;p&gt;It works well on my development box. I can trace our ASP.NET parts of the program (which communicate with some legacy VB6 components).&lt;/p&gt;
&lt;p&gt;When I move the program to a perf box - I have no problem tracing a simple .NET console application. All the env variables are set and the profiler works fine.&lt;/p&gt;
&lt;p&gt;However for some reason - when I instantiate our program (in dllhost.exe) - the profiler does produce any trace. The same thing works fine on my dev box.&lt;/p&gt;
&lt;p&gt;As far as I know the programs running on both boxes are built the same way. A difference is that the perf box runs Win2k3 R2 server while I run XP on my dev box.&lt;/p&gt;
&lt;p&gt;Would you have any pointers for me?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Sriram&lt;/p&gt;</description></item><item><title>re: Debugging Your Profiler I: Activation</title><link>http://blogs.msdn.com/davbr/archive/2007/12/11/debugging-your-profiler-i-activation.aspx#8975847</link><pubDate>Fri, 03 Oct 2008 22:45:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8975847</guid><dc:creator>davbr</dc:creator><description>&lt;p&gt;Hello, Sriram. &amp;nbsp;Would you please post your question on our forum here?&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://social.msdn.microsoft.com/forums/en-US/netfxtoolsdev/threads/"&gt;http://social.msdn.microsoft.com/forums/en-US/netfxtoolsdev/threads/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;That’s the best way to ensure we track your question and get it answered.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Thanks,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dave&lt;/p&gt;
</description></item></channel></rss>