title: ElmahR Dashboard throws "Unable to compile template" error when Sending Commands
body: <p>I worked through the Setup documentation found <a href="https://bitbucket.org/wasp/elmahr/wiki/Setup" rel="nofollow noreferrer">here</a>.  I have a sample dashboard application and a sample client application which throws Elmah errors into a SQL database.</p>
  
  <p>The client application has elmah working correctly and I can view the error logs at elmah.axd.  When I attempt to access the Dashboard application the page loads and kicks off the "Sending Commands" message.  I then get a 500 Internal Server error from the first "send?transport=..." command.</p>
  
  <p>The Dashboard app is an ASP.Net MVC 5 app running on my localhost.</p>
  
  <p>This is the URL that generates the error: </p>
  
  <pre><code>http://localhost/ElmahR/elmahr/commands/send?transport=serverSentEvents&amp;connectionToken=k6HUNtFtmSXrJZgH_2oexTg_cx-el2G7PhJ6NZD4aBLT_svpboE31meZG4wazu7VDS8_WWRjnnV-yGSVhBzBbYWlXFTo08onRvNCzYgYhH5kwMw9KvKOSQIakT6Wzv_Y0
  </code></pre>
  
  <p>When I inspect that error, this is what I get:</p>
  
  <pre><code>RazorEngine.Templating.TemplateCompilationException
  Unable to compile template. Source file 'C:\Windows\TEMP\lahvjqh3.0.cs' could not be found Other compilation errors may have occurred. Check the Errors property for more information.
  
  System.AggregateException: One or more errors occurred. ---&gt; RazorEngine.Templating.TemplateCompilationException: Unable to compile template. Source file 'C:\Windows\TEMP\lahvjqh3.0.cs' could not be found
  
  Other compilation errors may have occurred. Check the Errors property for more information.
     at RazorEngine.Compilation.DirectCompilerServiceBase.CompileType(TypeContext context) in c:\_git\RazorEngine\src\Core\RazorEngine.Core\Compilation\DirectCompilerServiceBase.cs:line 100
     at RazorEngine.Templating.TemplateService.CreateTemplateType(String razorTemplate, Type modelType) in c:\_git\RazorEngine\src\Core\RazorEngine.Core\Templating\TemplateService.cs:line 256
     at RazorEngine.Templating.TemplateService.CreateTemplate(String razorTemplate, Type templateType, Object model) in c:\_git\RazorEngine\src\Core\RazorEngine.Core\Templating\TemplateService.cs:line 127
     at RazorEngine.Templating.TemplateService.Parse(String razorTemplate, Object model, DynamicViewBag viewBag, String cacheName) in c:\_git\RazorEngine\src\Core\RazorEngine.Core\Templating\TemplateService.cs:line 435
     at ElmahR.Core.Plugins.&lt;BuildPlugins&gt;b__a(&lt;&gt;f__AnonymousType2`2 &lt;&gt;h__TransparentIdentifier6)
     at System.Linq.Enumerable.&lt;&gt;c__DisplayClass12`3.&lt;CombineSelectors&gt;b__11(TSource x)
     at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
     at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
     at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
     at ElmahR.Core.StartupConnection.&lt;.ctor&gt;b__1(IConnection c, IRequest r, String cid, String d)
     at ElmahR.Core.StartupConnection.OnReceived(IRequest request, String connectionId, String data)
     at Microsoft.AspNet.SignalR.PersistentConnection.&lt;&gt;c__DisplayClassa.&lt;&gt;c__DisplayClassc.&lt;ProcessRequest&gt;b__7()
     at Microsoft.AspNet.SignalR.TaskAsyncHelper.FromMethod(Func`1 func)
     --- End of inner exception stack trace ---
     at Microsoft.Owin.Host.SystemWeb.CallContextAsyncResult.End(IAsyncResult result)
     at System.Web.HttpApplication.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar)
  ---&gt; (Inner Exception #0) RazorEngine.Templating.TemplateCompilationException: Unable to compile template. Source file 'C:\Windows\TEMP\lahvjqh3.0.cs' could not be found
  
  Other compilation errors may have occurred. Check the Errors property for more information.
     at RazorEngine.Compilation.DirectCompilerServiceBase.CompileType(TypeContext context) in c:\_git\RazorEngine\src\Core\RazorEngine.Core\Compilation\DirectCompilerServiceBase.cs:line 100
     at RazorEngine.Templating.TemplateService.CreateTemplateType(String razorTemplate, Type modelType) in c:\_git\RazorEngine\src\Core\RazorEngine.Core\Templating\TemplateService.cs:line 256
     at RazorEngine.Templating.TemplateService.CreateTemplate(String razorTemplate, Type templateType, Object model) in c:\_git\RazorEngine\src\Core\RazorEngine.Core\Templating\TemplateService.cs:line 127
     at RazorEngine.Templating.TemplateService.Parse(String razorTemplate, Object model, DynamicViewBag viewBag, String cacheName) in c:\_git\RazorEngine\src\Core\RazorEngine.Core\Templating\TemplateService.cs:line 435
     at ElmahR.Core.Plugins.&lt;BuildPlugins&gt;b__a(&lt;&gt;f__AnonymousType2`2 &lt;&gt;h__TransparentIdentifier6)
     at System.Linq.Enumerable.&lt;&gt;c__DisplayClass12`3.&lt;CombineSelectors&gt;b__11(TSource x)
     at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
     at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
     at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
     at ElmahR.Core.StartupConnection.&lt;.ctor&gt;b__1(IConnection c, IRequest r, String cid, String d)
     at ElmahR.Core.StartupConnection.OnReceived(IRequest request, String connectionId, String data)
     at Microsoft.AspNet.SignalR.PersistentConnection.&lt;&gt;c__DisplayClassa.&lt;&gt;c__DisplayClassc.&lt;ProcessRequest&gt;b__7()
     at Microsoft.AspNet.SignalR.TaskAsyncHelper.FromMethod(Func`1 func)&lt;---
  </code></pre>
  
  <p>Any idea what might be configured incorrectly for it to throw this error?  Is is something I need to change with Razor?</p>
  
  <p>This is what I see:</p>
  
  <p><img src="https://i.stack.imgur.com/k8zbP.png" alt="ElmahR Error"></p>