Asp.net - Web.Config - Custom Errors

前端 未结 4 1908
轻奢々
轻奢々 2021-01-20 09:49

How can I set 404 and other error pages using web.config? I have tried adding following block in web.config.

     

        
4条回答
  •  猫巷女王i
    2021-01-20 10:32

    I solved it myself. We need to add another section in web.config like below to make it work in IIS 7 / 7.5. For IIS 6 the one works which I mentioned in my question

    
    ...
    
    
    
    
    
    
             
    
    ...
    
    

    Thanks to everyone who answered.

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题