<!--array (
  0 => 
  array (
    0 => '5294',
  ),
  1 => 
  array (
    0 => '',
  ),
  2 => 
  array (
    0 => '',
  ),
)-->

<!--array (
  0 => 
  array (
    0 => '5294',
  ),
  1 => 
  array (
    0 => '',
  ),
  2 => 
  array (
    0 => '',
  ),
)-->

<!--array (
  0 => 
  array (
    0 => '5294',
  ),
  1 => 
  array (
    0 => '',
  ),
  2 => 
  array (
    0 => '',
  ),
)-->

<!--array (
  0 => 
  array (
    0 => '5294',
  ),
  1 => 
  array (
    0 => '',
  ),
  2 => 
  array (
    0 => '',
  ),
)-->

<!--array (
  0 => 
  array (
    0 => '5294',
  ),
  1 => 
  array (
    0 => '',
  ),
  2 => 
  array (
    0 => '',
  ),
)-->

<!--array (
  0 => 
  array (
    0 => '5294',
  ),
  1 => 
  array (
    0 => '',
  ),
  2 => 
  array (
    0 => '',
  ),
)-->

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ÎÜñ&#124;‹ø\/\/ñ [ÐëÞrëçã†ëð]&#039;s Blog &#187; Search Results  &#187;  5294</title>
	<atom:link href="http://desigeek.com/blog/amit/search/5294/feed/rss2/" rel="self" type="application/rss+xml" />
	<link>http://desigeek.com/blog/amit</link>
	<description>Amit Bahree&#039;s insight into stuff…</description>
	<lastBuildDate>Fri, 27 Jan 2012 15:53:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title><!--array (
  0 => 
  array (
    0 => '5294',
  ),
  1 => 
  array (
    0 => '',
  ),
  2 => 
  array (
    0 => '',
  ),
)-->

Creating an Event Source via a Reg File</title>
		<link>http://desigeek.com/blog/amit/2009/05/19/creating-an-event-source-via-a-reg-file/</link>
		<comments>http://desigeek.com/blog/amit/2009/05/19/creating-an-event-source-via-a-reg-file/#comments</comments>
		<pubDate>Tue, 19 May 2009 20:55:37 +0000</pubDate>
		<dc:creator>Amit Bahree</dc:creator>
				<category><![CDATA[.geek]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<!--array (
  0 => 
  array (
    0 => '5294',
  ),
  1 => 
  array (
    0 => '',
  ),
  2 => 
  array (
    0 => '',
  ),
)-->

If you ever tried to write to the event log, without an event source for that application created you will get an exception saying something along the lines of that you do not have permissions to create the event source. If an event source does not exist, it is automatically created. The creation of the [...]]]></description>
			<content:encoded><![CDATA[<!--array (
  0 => 
  array (
    0 => '5294',
  ),
  1 => 
  array (
    0 => '',
  ),
  2 => 
  array (
    0 => '',
  ),
)-->

<!--array (
  0 => 
  array (
    0 => '5294',
  ),
  1 => 
  array (
    0 => '',
  ),
  2 => 
  array (
    0 => '',
  ),
)-->

<!--array (
  0 => 
  array (
    0 => '5294',
  ),
  1 => 
  array (
    0 => '',
  ),
  2 => 
  array (
    0 => '',
  ),
)-->

<p>If you ever tried to write to the event log, without an event source for that application created you will get an exception saying something along the lines of that you do not have permissions to create the event source.</p>
<p>If an event source does not exist, it is automatically created. The creation of the event source is a privileged operation and requires elevated privileges (a.k.a admin privileges) which of course might not always be possible if running a web application. </p>
<p>The easiest way to create this event source is via a reg file. An example is below (credit goes to my colleague Dominic to provide me the original sample). </p>
<p><strong>Note:</strong> you need all the lines below including the “Windows Registry Editor Version 5.00”. </p>
<p>Windows Registry Editor Version 5.00</p>
<p>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\YOUR-APPLICATION-NAME-GOES-HERE]</p>
<p>&quot;EventMessageFile&quot;=hex(2):43,00,3a,00,5c,00,57,00,49,00,4e,00,44,00,4f,00,57,\</p>
<p>&#160; 00,53,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,2e,00,\</p>
<p>&#160; 4e,00,45,00,54,00,5c,00,46,00,72,00,61,00,6d,00,65,00,77,00,6f,00,72,00,6b,\</p>
<p>&#160; 00,5c,00,76,00,32,00,2e,00,30,00,2e,00,35,00,30,00,37,00,32,00,37,00,5c,00,\</p>
<p>&#160; 45,00,76,00,65,00,6e,00,74,00,4c,00,6f,00,67,00,4d,00,65,00,73,00,73,00,61,\</p>
<p>&#160; 00,67,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,00,00</p>
<p><img src="http://desigeek.com/weblog/aggbug.aspx?PostID=5294" width="1" height="1"></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fdesigeek.com%2Fblog%2Famit%2F2009%2F05%2F19%2Fcreating-an-event-source-via-a-reg-file%2F&amp;title=Creating%20an%20Event%20Source%20via%20a%20Reg%20File" id="wpa2a_2"><img src="http://desigeek.com/blog/amit/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://desigeek.com/blog/amit/2009/05/19/creating-an-event-source-via-a-reg-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

