16

I use Elmah in local - alright.

On the server however, it issues the followed error, and I cannot figure out what how to gain access.

403 - Forbidden: Access is denied. You do not have permission to view this directory or page using the credentials that you supplied.

Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632
Mediator
  • 14,951
  • 35
  • 113
  • 191
  • Nor can we seeing as you haven't given us a even vague clue, of what you are accessing from where, and what it needs access to... – Tony Hopkinson May 12 '12 at 12:11

2 Answers2

37

Maybe you should enable remote access

<elmah>  
    <security allowRemoteAccess="1" />  
</elmah>  
archil
  • 39,013
  • 7
  • 65
  • 82
0

In addition to archil's answer, don't forget that if you require authentication, the allowed users and roles are case sensitive:

<appSettings>
    ...
    <add key="elmah.mvc.disableHandler" value="false"/>
    <add key="elmah.mvc.disableHandleErrorFilter" value="false"/>
    <add key="elmah.mvc.requiresAuthentication" value="true"/>
    <add key="elmah.mvc.IgnoreDefaultRoute" value="false"/>
    <!-- The roles and usernames for elmah are case sensitive! -->
    <add key="elmah.mvc.allowedRoles" value="Administrator"/>
    <add key="elmah.mvc.allowedUsers" value="user1,user2,user3"/>
    <add key="elmah.mvc.route" value="elmah"/>
    ...
</appSettings>
jaybro
  • 1,363
  • 1
  • 12
  • 23