Elmah reporting unwanted 404 errors

前端 未结 2 1112
萌比男神i
萌比男神i 2021-01-07 22:10

I am using Elmah for logging in a ASP.NET MVC project and I am recieving lots of 404 errors for a path /prx2.php which in turn is passing a hash as a querystring param.

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-07 22:27

    Step1: Configure config sections to include elmah errorFilter section:

    
      
          
        
        

    Step2: Configure the filter itself in section.

    
      
      
        
          
            
            
            
          
        
      
        
    

    Step3: Include the Elmah.ErrorFilterModule inside your application modules

    Modern (IIS7+) version of including http module:

    
      
        
        
      
    
    

    Legacy (older IIS) version of including http module:

    
      
        
      
    
    

提交回复
热议问题