Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道你可以在 web.config 中模拟,
控制台应用程序的 app.config 中是否可能完全相同?
控制台应用程序已经在运行用户的上下文中运行,所以是的,这是默认行为。
ASP.NET 具有此功能,因为 iis 工作进程已经在 ASPNET 帐户的上下文中运行,而不是在浏览用户的上下文中。