Elmah on MVC website with subcategory WordPress / php

I created a website using ASP.NET MVC and use ELMAH to handle errors, this works fine. After setting up a virtual directory on my website in the / blog section and adding the necessary PHP WordPress and mysql db files, I get the error below.

Could not load file or assembly 'Elmah' or one of its dependencies. The system cannot find the file specified.

I think this is due to the fact that ELMAH applies itself to all subdirectories.

Is there a way I can tell ELMAH to ignore everything under blogs? Or is there a way around this?

Thanks in advance.

+3
source share
1 answer

Web.config MVC /blog , Elmah <add name="Elmah" etc. etc. />, <remove name="Elmah" /> -, .

+4

Source: https://habr.com/ru/post/1744624/


All Articles