Disable web.config inheritance?

前端 未结 4 885
逝去的感伤
逝去的感伤 2020-11-30 00:48

I have a content management application in the root of my website, and I\'m trying to use a different app (a billing application) under a sub-folder. Unfortunately, the web.

4条回答
  •  感情败类
    2020-11-30 01:01

    There is an attribute that you can use in the root web.config file to cause it not to have its contents become inherited by child applications.

    inheritInChildApplications

    Blog about inheritInChildApplications

    MSDN article on ASP.NET Configuration File Hierarcy and Inheritance

    Put the part of the config that is not for inheritance inside

    
         
    
    

    Config sections seem to be impossible to not inherit, but other parts of configuration can be "commented" out like this and don't get inherited.

提交回复
热议问题