Elmah not working with asp.net site

后端 未结 7 697
抹茶落季
抹茶落季 2020-11-27 10:02

I\'ve tried to use elmah with my asp.net site but whenever I try to go to http://localhost:port/elmah.axd I get resource not found exception. My web.config is given below.

7条回答
  •  时光说笑
    2020-11-27 10:44

    I just had a similar problem with Elmah not working in an IIS7 deployment. I found that I needed to register the Elmah Modules and Handlers in system.web AND system.webServer:

    
    ...
      
        ...
        
        ...
      
      
        ...
        
        
        
        ...
      
      ...
    
    
      ...
      
        ...
        
        
        
        ...
      
      
        ...
        
        ...
      
    
    

提交回复
热议问题