Custom error pages on asp.net MVC3

前端 未结 6 1106
无人及你
无人及你 2020-11-22 11:07

I\'m developing a MVC3 base website and I am looking for a solution for handling errors and Render custom Views for each kind of error. So imagine that I have a \"Error\" Co

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-22 11:44

    You can also do this in the Web.Config File. Here is an example that works in IIS 7.5.

         
              
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
               
    
    

提交回复
热议问题