How can I create new applicationhost.config file in IIS Express Server?

徘徊边缘 提交于 2020-01-01 03:55:07

问题


I had to delete my applicationhost.config, because VS 1012 didn't deal with it. How can I create it? thank you.


回答1:


Just run IISExpress and it will recreate the file for you. The exe is located at: "c:\Program Files\IIS Express\iisexpress.exe".

Hope this helps.




回答2:


After you deleted applicationhost.config you do not need to run iisexpress.exe manually, you can simply load your project in Visual Studio and run it. Visual Studio will take care of that plus it will change applicationhost.config with settings for that project specified in project Properties window (not mouse menu properties).

It will add corresponding override section at the bottom of applicationhost.config

<location path="...WebServices">
    <system.webServer>
        <security>
            <authentication>
                <anonymousAuthentication enabled="false" />
                <windowsAuthentication enabled="true" />
            </authentication>
        </security>
    </system.webServer>
</location>


来源:https://stackoverflow.com/questions/16802839/how-can-i-create-new-applicationhost-config-file-in-iis-express-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!