title: The source was not found, but some or all event logs could not be searched using SignalR
body: <p>I deployed an MVC4 application (that uses SignalR) to a server. SignalR works fine when I run it on my dev machine but when I run it after deploying it to the server I get the following error. I think it has to do with something not having permissions to write to the Event Log. I looked at <a href="https://stackoverflow.com/questions/9564420/the-source-was-not-found-but-some-or-all-event-logs-could-not-be-searched">this</a> answer but those solutions did not work for me. Can someone shed some light?</p>
  
  <blockquote>
    <p>System.Security.SecurityException: 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.</p>
    
    <p>Server stack trace:     at
    System.Diagnostics.EventLog.FindSourceRegistration(String source,
    String machineName, Boolean readOnly, Boolean wantToCreate)    at
    System.Diagnostics.EventLog.SourceExists(String source, String
    machineName, Boolean wantToCreate)    at
    System.Diagnostics.EventLogInternal.VerifyAndCreateSource(String
    sourceName, String currentMachineName)    at
    System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance,
    Byte[] data, Object[] values)    at
    System.Diagnostics.EventLog.WriteEvent(EventInstance instance,
    Object[] values)    at
    System.Diagnostics.TraceSource.TraceEvent(TraceEventType eventType,
    Int32 id, String format, Object[] args)    at
    Microsoft.AspNet.SignalR.Transports.TransportHeartbeat.&lt;>c__DisplayClass2.b__1(String
    key, ConnectionMetadata old)    at
    System.Collections.Concurrent.ConcurrentDictionary<code>2.AddOrUpdate(TKey
    key, TValue addValue, Func</code>3 updateValueFactory)    at
    Microsoft.AspNet.SignalR.Transports.TransportHeartbeat.AddConnection(ITrackingConnection
    connection)    at
    Microsoft.AspNet.SignalR.Transports.ForeverTransport.ProcessReceiveRequest(ITransportConnection
    connection)    at
    Microsoft.AspNet.SignalR.PersistentConnection.ProcessRequest(HostContext
    context)    at Microsoft.Owin.Host.SystemWeb.OwinCallContext.Execute()
    at
    Microsoft.Owin.Host.SystemWeb.OwinHttpHandler.BeginProcessRequest(HttpContextBase
    httpContext, AsyncCallback callback, Object extraData)</p>
    
    <p>Exception rethrown at [0]:     at
    Microsoft.Owin.Host.SystemWeb.Infrastructure.ErrorState.&lt;>c__DisplayClass1.b__0(Exception
    ex)    at
    Microsoft.Owin.Host.SystemWeb.CallContextAsyncResult.End(IAsyncResult
    result)    at
    System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
    Boolean&amp; completedSynchronously) The Zone of the assembly that failed
    was: MyComputer</p>
  </blockquote>