在Asp.NET 4.0清洁Web.Config文件?

编程入门 行业动态 更新时间:2024-10-14 02:19:47
本文介绍了在Asp.NET 4.0清洁Web.Config文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

好了,

我想知道,有明确的web.config文件可能是好的,但你知道一些共享的网络托管公司不让我们碰之类的东西machine.config中和等。

I am wondering having clear web.config file could be good but you know some shared web hosting companies don't allow us to touch things like machine.config and etc.

所以如果有很多东西都被移动到machine.config中,这样,我们被允许改变的事情就像我们曾经通过web.config文件。

So If a lot of things have been moved onto machine.config, then will we be allowed to change things like we used to through web.config file.

推荐答案

没有改变在这方面与ASP.NET 4.0:ASP.NET配置模式一直运作方式是,你可以覆盖machine.config中设置在您的网站根目录的web.config,并进一步在子目录。

Nothing is changing in this regard with ASP.NET 4.0: the way the ASP.NET configuration model has always worked is that you can override settings in machine.config with a web.config in your site root and further in sub-directories.

下面是一个什么样的实际更改为ASP.NET 4.0配置文件和决定背后的原因的总结,它基本上以减少文件大小,让事情变得更简单,更易于阅读:weblogs.asp/scottgu/archive/2009/08/25/clean-web-config-files-vs-2010-and-net-4-0-series.aspx

Here is a summary of what's actually changing for ASP.NET 4.0 config files and the reasoning behind the decision, it's basically to reduce the file size, make things less complicated and easier to read: weblogs.asp/scottgu/archive/2009/08/25/clean-web-config-files-vs-2010-and-net-4-0-series.aspx

更多推荐

在Asp.NET 4.0清洁Web.Config文件?

本文发布于:2023-11-02 00:24:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1550837.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:清洁   文件   NET   Asp   Web

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!