title: ELMAH applicationName: show exceptions logged by another site
body: <p>I have one site logging errors using Elmah.SqlErrorLog. My goal to have another site contain the handlers that serve the pages one would typically see at localhost/elmah.axd. The reason for this is that the site logging the errors uses Forms authentication, while I want to restrict who can see the logs by Windows authentication.</p>
  
  <p>The site doing the logging is running on port 80, and the site to display the logs is on port 8008. At first, I was unable to see exceptions from the logging site. Then I found this answer, which explains that you can set the applicationName for your errorLog: <a href="https://stackoverflow.com/questions/589996/separate-viewer-application-for-elmahs-log">Separate viewer application for ELMAH&#39;s log</a></p>
  
  <p>I looked in the table that ELMAH logs to, and found that prior to my attempt to separate logging/viewing into two different sites, it has been logging "/LM/W3SVC/3/ROOT" in the Application column.</p>
  
  <p>After specifying applicationName="/LM/W3SVC/3/ROOT", it worked! Unfortunately, this value varies machine to machine, which will not work nicely when the next guy's dev box happens to have an applicationName of "/LM/W3SVC/10/ROOT". According to this, that string has to do with the local machine namespace: <a href="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/44a57859-8fbb-4238-a7b5-f10c34cf8fe8.mspx?mfr=true" rel="nofollow noreferrer">http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/44a57859-8fbb-4238-a7b5-f10c34cf8fe8.mspx?mfr=true</a></p>
  
  <p>How can I get the site on port 8008 that is for viewing the logs to display exceptions logged from the site on port 80?</p>