[英]applicationhost.config inside hidden .vs folder
can some help me because i am really confused. 可以帮助我,因为我真的很困惑。 Using Visual studio, in my App folder i have a hidden folder named .vs , inside another folder config and next an applicationhost.config . 使用Visual Studio,在我的App文件夹中,我有一个名为.vs的隐藏文件夹,位于另一个文件夹config中 ,接下来是applicationhost.config 。
This config file, when used and for who is important to have? 此配置文件,在使用时以及对于谁重要? If i published my web app thought IIS, this file used in someway? 如果我以IIS的身份发布我的Web应用程序,该文件是否以某种方式使用?
I can see that inside this config file exist node applicationPools and sites like this that IIS have. 我可以看到在此配置文件中存在节点applicationPool和IIS具有的站点 。 So why this config file have global settings for IIS and is stored inside my Apps folder and not somewhere more 'outside'? 那么,为什么该配置文件具有IIS的全局设置,并且存储在我的Apps文件夹中,而不是存储在“外部”?
When i run local my app this config used? 当我在本地运行我的应用程序时使用此配置? Or only when is on IIS, or both? 或仅当在IIS上时才使用,或两者都用?
I really have no idea why and how use applicationhost.config but if i wanted to change user credentials that App run what should change? 我真的不知道为什么以及如何使用applicationhost.config,但是如果我想更改App运行的用户凭据,应该更改什么?
<applicationPoolDefaults managedRuntimeLoader="v4.0">
<processModel identityType="SpecificUser" userName="username" password="password" />
</applicationPoolDefaults>
I'm not shure if you are locally testing your website using IIS or rather IIS Express . 如果您要使用IIS或IIS Express在本地测试您的网站,则我不确定。
If you whant to publish settings for IIS, you can include those in the section <system.webServer>
in your Web.config file. 如果您想发布IIS的设置,则可以在Web.config文件的<system.webServer>
部分中包括这些设置 。 Those settings will then be added to the IIS configuration, you deploy to. 这些设置将被添加到您部署到的IIS配置中。
Hope this makes things a bit clearer. 希望这可以使事情变得更清晰。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.