ASP.net 机器配置文件

发布于 2024-08-27 07:14:43 字数 108 浏览 8 评论 0原文

如果我将配置设置(如会员提供者)数据库连接等放在 “machine.config”,并从我当前的应用程序中删除“web.config”文件,我的应用程序可以顺利运行吗?这是 .NET 中可接受的做法吗?

If I put configuration settings (like membership provider) DB Connnection, etc. in the
"machine.config", and remove the "web.config" file from my current application, will my application work without any trouble? Is it an accepted practice in .NET?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

短叹 2024-09-03 07:14:43

您可以执行此操作,但需要注意服务器上托管的所有应用程序要么遵守该行为,要么覆盖该行为。

这是一篇可能对您有帮助的文章:
http://odetocode.com/Articles/427.aspx

You can do this but you need to be careful that all apps hosted on the server either comply or override the behaviour.

Here is an article that may help you:
http://odetocode.com/Articles/427.aspx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文