title: ELMAH File Not Accessible on Local Machine using Host Name
body: <p>I can access the elmah.axd file, to view errors, when browsing using the localhost host name (i.e. <a href="http://localhost:24425/admin/elmah.axd" rel="nofollow">http://localhost:24425/admin/elmah.axd</a>).</p>
  
  <p>I created a different host name and added it in my host file (to mirror production domain name).  When I browse the site, and force an exception, the exception does get logged (SQL Server) using the prod host name.  However, I am not able to view the elmah.axd file (i.e. <a href="http://www.foo.com/admin/elmah.axd" rel="nofollow">http://www.foo.com/admin/elmah.axd</a>).  I get "<em>HTTP Error 404.0 - Not Found
  The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.</em>"</p>
  
  <p>When I force an exception, using the localhost url, the exception still does get logged in SQL and I am able to browse this file: <a href="http://localhost:24425/admin/elmah.axd" rel="nofollow">http://localhost:24425/admin/elmah.axd</a>.  However, I only see exceptions that occur under the localhost url (not the www.foo.com url).</p>
  
  <p>After reviewing SQL, I see errors that happen using localhost with Application "/" and User set to the account I am logged in with.  The errors generated when using www.foo.com have Application set to "/LM/W3SVC/6/ROOT" and the User column is blank.</p>
  
  <p>I just need to be able to access the elmah.axd file when using www.foo.com/admin/elmah.axd.  I have set security allowRemoteAccess to "1" in my web.config and have also added the elmah stuff to system.web and system.webServer nodes in my web.config.</p>
  
  <p>I am using Windows Server 2008R2, IIS7.5 and it is a ASP.NET site (set up as a Web Application).</p>
  
  <p>Thanks for any advice given.</p>