title: Writing to EventLog from Windows 8.1, message saying "The description for Event ID 0 from source cannot be found."
body: <p>I am running this on Windows 8.1 version 6.3.9600
  I would really need some help with the most basic simplistic application that writes to Event Log. This is the code I have:</p>
  
  <pre><code>namespace ConsoleApplication1
  {
      class Program
      {
          static void Main(string[] args)
          {
              EventLog.WriteEntry("Testing Application", "Testing data", EventLogEntryType.Information, 100);
          }
      }
  }
  </code></pre>
  
  <p>After the execution I get an exception saying that:
  <i>The source was not found, but some or all event logs could not be searched.  To create the source, you need permission to read all event logs to make sure that the new source name is unique.  Inaccessible logs: Security.</i></p>
  
  <p>But If I add the registry key <i>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Application\Testing Application</i> and add value <i>TypesSupported</i> with data <i>7</i> then there is no exception, but the event entry displays all this:</p>
  
  <p><i>The description for Event ID 100 from source Testing Application cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.</p>
  
  <p>If the event originated on another computer, the display information had to be saved with the event.</p>
  
  <p>The following information was included with the event: </p>
  
  <p>Testing data</p>
  
  <p>the message resource is present but the message is not found in the string/message table</i></p>
  
  <p>Is there anything I can do to display only the text "Testing data" in the event log? Or does Windows 8.1 work differently and I didn't know that?</p>
  
  <p>Kind Regards</p>
  
  <p>Damjan</p>