ELMAH is not logging

北战南征 提交于 2019-12-04 09:31:50

When I've had issues with ELMAH in production in the past, it's typically been one of two things:

1) The directory I want to drop the log files in has not been created 2) The ASP.NET worker process does not have write permission to the drop directory

You haven't posted the actual config section here, but I take it from your question that you're doing something like this:

<elmah> 
   <errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="~/App_Data" /> 
</elmah> 

If you're using App_Data, I assume that folder already exists in your deployment directory. If not, you'll need to add it. If it's there, try giving the ASPNET account write privs on that directory, if you haven't already.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!