<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Write To Vista Event Log Using C#</title>
	<atom:link href="http://www.onedotnetway.com/write-to-vista-event-log-using-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.onedotnetway.com/write-to-vista-event-log-using-c/</link>
	<description>Everything .Net</description>
	<lastBuildDate>Mon, 09 Jan 2012 00:09:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Events Calendar</title>
		<link>http://www.onedotnetway.com/write-to-vista-event-log-using-c/comment-page-1/#comment-12616</link>
		<dc:creator>Events Calendar</dc:creator>
		<pubDate>Mon, 30 Nov 2009 16:56:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.onedotnetway.com/write-to-vista-event-log-using-c/#comment-12616</guid>
		<description>Bookmarked your feed!  Thanks!</description>
		<content:encoded><![CDATA[<p>Bookmarked your feed!  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barchen</title>
		<link>http://www.onedotnetway.com/write-to-vista-event-log-using-c/comment-page-1/#comment-892</link>
		<dc:creator>Barchen</dc:creator>
		<pubDate>Sun, 11 Jan 2009 09:58:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.onedotnetway.com/write-to-vista-event-log-using-c/#comment-892</guid>
		<description>How to use kind of different of &quot;Application&quot; log.
I trying to write to custom log use custom source.</description>
		<content:encoded><![CDATA[<p>How to use kind of different of &#8220;Application&#8221; log.<br />
I trying to write to custom log use custom source.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bjorn Goransson</title>
		<link>http://www.onedotnetway.com/write-to-vista-event-log-using-c/comment-page-1/#comment-498</link>
		<dc:creator>Bjorn Goransson</dc:creator>
		<pubDate>Thu, 27 Nov 2008 11:55:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.onedotnetway.com/write-to-vista-event-log-using-c/#comment-498</guid>
		<description>Well, running as admin will also work, of course.

Or as SYSTEM (while installing an MSI, for example).

We need a system service anyway, so I just made it do different things such like this.</description>
		<content:encoded><![CDATA[<p>Well, running as admin will also work, of course.</p>
<p>Or as SYSTEM (while installing an MSI, for example).</p>
<p>We need a system service anyway, so I just made it do different things such like this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philip</title>
		<link>http://www.onedotnetway.com/write-to-vista-event-log-using-c/comment-page-1/#comment-379</link>
		<dc:creator>philip</dc:creator>
		<pubDate>Thu, 06 Nov 2008 22:20:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.onedotnetway.com/write-to-vista-event-log-using-c/#comment-379</guid>
		<description>does not your second line need to be if (!EventLog.SourceExists(source)) ?</description>
		<content:encoded><![CDATA[<p>does not your second line need to be if (!EventLog.SourceExists(source)) ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chad</title>
		<link>http://www.onedotnetway.com/write-to-vista-event-log-using-c/comment-page-1/#comment-142</link>
		<dc:creator>chad</dc:creator>
		<pubDate>Mon, 22 Sep 2008 13:57:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.onedotnetway.com/write-to-vista-event-log-using-c/#comment-142</guid>
		<description>Yeah, it&#039;s the UAC issue... I&#039;m able to get around it by disabling UAC, but it&#039;s annoying.</description>
		<content:encoded><![CDATA[<p>Yeah, it&#8217;s the UAC issue&#8230; I&#8217;m able to get around it by disabling UAC, but it&#8217;s annoying.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matti</title>
		<link>http://www.onedotnetway.com/write-to-vista-event-log-using-c/comment-page-1/#comment-134</link>
		<dc:creator>Matti</dc:creator>
		<pubDate>Fri, 19 Sep 2008 09:12:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.onedotnetway.com/write-to-vista-event-log-using-c/#comment-134</guid>
		<description>Deepak,

in normal course, this would be the right way. But we deploy our application via ClickOnce deployment and there you don&#039;t have any way to create such things during the installation. So my solution will be, to write a helper application which creates the EventLog-source which needs to be run as administrator.</description>
		<content:encoded><![CDATA[<p>Deepak,</p>
<p>in normal course, this would be the right way. But we deploy our application via ClickOnce deployment and there you don&#8217;t have any way to create such things during the installation. So my solution will be, to write a helper application which creates the EventLog-source which needs to be run as administrator.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deepak</title>
		<link>http://www.onedotnetway.com/write-to-vista-event-log-using-c/comment-page-1/#comment-133</link>
		<dc:creator>Deepak</dc:creator>
		<pubDate>Fri, 19 Sep 2008 08:04:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.onedotnetway.com/write-to-vista-event-log-using-c/#comment-133</guid>
		<description>Matti,

That certainly will be an issue. In normal course you will create performance counters when your application is installed and the installer will need to run as administrator.</description>
		<content:encoded><![CDATA[<p>Matti,</p>
<p>That certainly will be an issue. In normal course you will create performance counters when your application is installed and the installer will need to run as administrator.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matti</title>
		<link>http://www.onedotnetway.com/write-to-vista-event-log-using-c/comment-page-1/#comment-125</link>
		<dc:creator>Matti</dc:creator>
		<pubDate>Thu, 18 Sep 2008 13:34:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.onedotnetway.com/write-to-vista-event-log-using-c/#comment-125</guid>
		<description>This code does work for Vista with disabled UAC. Otherwise, a security exception is thrown. I&#039;m looking for a solution for this behavior, but without luck yet. If I do find somthing that works, I will tell you.</description>
		<content:encoded><![CDATA[<p>This code does work for Vista with disabled UAC. Otherwise, a security exception is thrown. I&#8217;m looking for a solution for this behavior, but without luck yet. If I do find somthing that works, I will tell you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deepak</title>
		<link>http://www.onedotnetway.com/write-to-vista-event-log-using-c/comment-page-1/#comment-86</link>
		<dc:creator>Deepak</dc:creator>
		<pubDate>Sat, 06 Sep 2008 10:27:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.onedotnetway.com/write-to-vista-event-log-using-c/#comment-86</guid>
		<description>Chad,

I wrote a simple console application to re-test what I posted. And yes it works fine on my Vista machine. Here is the code:

static void Main(string[] args)
{
  string source = &quot;Test Log&quot;;

  if (!EventLog.Exists(source))
    EventLog.CreateEventSource(source, &quot;Application&quot;);


  EventLog.WriteEntry(source, &quot;Writing Error&quot;,     EventLogEntryType.Error, 7);

}

Can you post the exception you are getting.</description>
		<content:encoded><![CDATA[<p>Chad,</p>
<p>I wrote a simple console application to re-test what I posted. And yes it works fine on my Vista machine. Here is the code:</p>
<p>static void Main(string[] args)<br />
{<br />
  string source = &#8220;Test Log&#8221;;</p>
<p>  if (!EventLog.Exists(source))<br />
    EventLog.CreateEventSource(source, &#8220;Application&#8221;);</p>
<p>  EventLog.WriteEntry(source, &#8220;Writing Error&#8221;,     EventLogEntryType.Error, 7);</p>
<p>}</p>
<p>Can you post the exception you are getting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chad</title>
		<link>http://www.onedotnetway.com/write-to-vista-event-log-using-c/comment-page-1/#comment-82</link>
		<dc:creator>chad</dc:creator>
		<pubDate>Thu, 04 Sep 2008 17:25:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.onedotnetway.com/write-to-vista-event-log-using-c/#comment-82</guid>
		<description>Does this work correctly for you in Vista?  I get a security exception when I try to create event log sources under Vista.</description>
		<content:encoded><![CDATA[<p>Does this work correctly for you in Vista?  I get a security exception when I try to create event log sources under Vista.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

