答案 0 :(得分:36)
也许你应该enable remote access
<elmah>
<security allowRemoteAccess="1" />
</elmah>
答案 1 :(得分:0)
除了 archil 的回答,不要忘记,如果你需要身份验证,允许的用户和角色是区分大小写的:
<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>