asp.net mvc 4 - MVC4 Elmah Location Path not recognised -


for mvc4 application have used nuget load elmah application. in web.config following error message:

location element unused; no project item found @ elmah.axd.

am meant create file name? how fix this?

<location path="elmah.axd" inheritinchildapplications="false">     <system.web>       <httphandlers>         <add verb="post,get,head" path="elmah.axd" type="elmah.errorlogpagefactory, elmah" />       </httphandlers>           see http://code.google.com/p/elmah/wiki/securingerrorlogpages          more information on using asp.net authorization securing elmah.        <authorization>         <allow roles="admin" />         <deny users="*" />         </authorization>       </system.web>     <system.webserver>       <handlers>         <add name="elmah" verb="post,get,head" path="elmah.axd" type="elmah.errorlogpagefactory, elmah" precondition="integratedmode" />       </handlers>     </system.webserver>   </location> 

if use elmah.mvc.dll there no need add handler elmah.axd. elmah.mvc.dll includes controller enabling access logs @ http://www.yourwebsite.com/elmah. described at:

https://github.com/alexanderbeletsky/elmah.mvc

i recommend approach because it's simpler configure elmah.axd handler.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -