是否有可能彻底否定A"高"在子文件夹的web.config? [英] Is it possible to completely negate a "higher" web.config in a subfolder?

查看:94
本文介绍了是否有可能彻底否定A"高"在子文件夹的web.config?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能在子文件夹彻底否定一个web.config?

Is it possible to completely negate a web.config in a subfolder?

显然,我有根一个web.config。

Obviously, I have a web.config in the root.

如果我有一个名为MyApp的子文件夹,我可以写一堆code在那里,有它无任何引用到根web.config中运行?这将有自己的web.config,甚至不会引用更高的web.config根。

If I have a subfolder called "MyApp", can I write a bunch of code in there and have it run without any reference to the web.config at root? It would have its own web.config, and wouldn't even reference the "higher" web.config in root.

我正在寻找的是完整的App隔离。我希望能在现有的站点,而忽略了整个的web.config层次上面的子文件夹写一个应用程序 - 该应用程序将一个岛屿都以本身

What I'm looking for is complete App isolation. I'd like to be able to write an app in a subfolder of an existing site, which ignores the entire web.config hierarchy above it -- the app would an island all to itself.

我知道我可以使用清除元素,但是这是最好的方式?只要把清每个顶级元素?只是不知道是否有另一种方式。

I know I can use the "clear" element, but is that the best way? Just put a "clear" under every top level element? Just wondering if there's another way.

的<一个重复href=\"http://stackoverflow.com/questions/778635/will-a-child-application-inherit-from-its-parent-web-config\">Will子应用程序从它的父的web.config继承?

推荐答案

是的,你必须清除这些路段要重写。关于它更多的思考,这是有道理的,因为清除一切可能使其很难找出什么以清零的唯一途径。清除通常重置的一切,包括在框架/ config文件夹中定义的服务器上的web.configs和machine.config中根web.configs。

Yes, you have to clear those sections want to override. Thinking about it a bit more, this makes sense, as the only way to clear everything might make it very hard to work out what to clear it to. Clear normally resets everything, including the root web.configs in the web.configs and machine.config defined in the frameworks /config folder on your server.

请注意,您也将无法访问/ bin文件夹,/ APP_ code文件夹等,这可能是也可能不是你想要的。

Note that you'll also lose access to the /bin folder, /app_code folder, etc. This may or may not be what you want.

您是否可以创建子应用程序与你的主机是另一回事考虑为好。

Whether you can create sub-applications with your host is another matter to consider as well.

这篇关于是否有可能彻底否定A&QUOT;高&QUOT;在子文件夹的web.config?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆