I’m trying to deploy elmah. For inexplicable reasons, I’m getting an error: .axd files are explicitly forbidden. I’ve already fixed what I can control (my web.config) and solutions requiring collaboration from the system admin are not available (such as editing machine web.config or updating IIS mappings). I also verified that it works fine on several other machines with ordinary configurations.
Ashx is supposed to be like axd, so are there any differences between axd and ashx I should take into consideration when converting from one to the other?
UPDATE: I think I answered my own question. I change the web.config to read
<add verb='POST,GET,HEAD' path='elmah.ashx' type='Elmah.ErrorLogPageFactory, Elmah' />
It seems to work. The source code for elmah doesn’t even have the string axd in it.
The answer is to change the web.config to look like this:
In fact, some source on the web say, unless you are microsoft you shouldn’t name any handlers axd lest you have a name conflict with a future version of ASP.NET.