Commits

Bogdan Varlamov  committed a23d51b

updating config for ELMAH to allow remote access to the error logging so that we can view errors on a deployed instance, but also adding role-based security to the error log page

  • Participants
  • Parent commits 5543626

Comments (0)

Files changed (1)

File development/src/Web/Web.config

     <add key="elmah.mvc.disableHandler" value="false" />
     <add key="elmah.mvc.disableHandleErrorFilter" value="false" />
     <add key="elmah.mvc.requiresAuthentication" value="false" />
-    <add key="elmah.mvc.allowedRoles" value="*" />
+    <add key="elmah.mvc.allowedRoles" value="Administrator" />
     <add key="elmah.mvc.route" value="elmah" />
   </appSettings>
   <location path="FederationMetadata">
       <certificateValidation certificateValidationMode="None" />
     </service>
   </microsoft.identityModel>
-  <elmah></elmah>
+  <elmah>
+    <errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="~/App_Data" />
+    <security allowRemoteAccess="true" />
+  </elmah>
 </configuration>