Search code examples
asp.netiisweb-configvirtual-directory

Ignore/disable specific Web.config in ASP.NET app's subfolder


In my app there is a subfolder that contains a Web.config that interferes with my app. E.g. "It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level."-type of errors come up.

I can't remove this problematic Web.config because this folder comes from an external source.

Is there any way I can tell IIS to just fully ignore this Web.config?


Solution

  • I got it from somebody expert in the field (among the developers of ASP.NET itself) that this is not possible.