How to use custom Errors page in Windows Authentication

后端 未结 3 1814
眼角桃花
眼角桃花 2020-12-19 13:54

I am using asp.net 3.5 web.config to limit access and it works great.



    

        
3条回答
  •  甜味超标
    2020-12-19 14:40

    You won't see it - custom error pages are served by the ASP.NET application, but Windows auth is served up by IIS itself.

    Now you can set IIS to use different error pages. For IIS7 this needs a separate configuration section;

    
      
        
      
    
    

    And you'll need to ensure the app pool user has access to that path.

提交回复
热议问题