开发者

Web.config : showing detailed error information from subdirectory

开发者 https://www.devze.com 2022-12-11 14:02 出处:网络
I have an asp.net 开发者_如何学JAVA web application .I have aweb.config in the root which will take care about the application related settings. as per my web.config,the site will not show any error m

I have an asp.net 开发者_如何学JAVA web application .I have a web.config in the root which will take care about the application related settings. as per my web.config,the site will not show any error messages to the end user,instead it will show a friendly error page. I have few sub direcorties in the root .Can i show error information in screen for files belongs to that sub directory by putting another web.config in the subdirectory ? What should be the values in web.config ?


Yes, you can add another web.config to your subfolder containing:

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号