gpt4 book ai didi

IIS 7.5 Express 新虚拟目录

转载 作者:行者123 更新时间:2023-12-04 01:47:54 26 4
gpt4 key购买 nike

如何添加新的虚拟目录?

我收到错误(找不到类型或命名空间名称“xxx”)但文件都在/bin 中。

我试过像这样编辑 applicationhost.config:

<site name="WebSite1" id="1" serverAutoStart="true">
<application path="/" applicationPool="Clr2IntegratedAppPool">
<virtualDirectory path="/" physicalPath="%IIS_SITES_HOME%\WebSite1" />
<virtualDirectory path="/SubFolderApp" physicalPath="%IIS_SITES_HOME%\WebSite1\SubFolderApp" allowSubDirConfig="true" />
</application>
<bindings>
<binding protocol="http" bindingInformation=":80:localhost" />
</bindings>
</site>

最佳答案

您需要创建一个子应用程序。您的配置创建了子虚拟目录。下面的配置将/SubFolderApp 变成了一个应用程序。

<site name="WebSite1" id="1" serverAutoStart="true">
<application path="/" applicationPool="Clr2IntegratedAppPool">
<virtualDirectory path="/" physicalPath="%IIS_SITES_HOME%\WebSite1" />
</application>
<application path="="/SubFolderApp" applicationPool="Clr2IntegratedAppPool">
<virtualDirectory path="/" physicalPath="%IIS_SITES_HOME%\WebSite1\SubFolderApp" />
</application>
<bindings>
<binding protocol="http" bindingInformation=":80:localhost" />
</bindings>
</site>

关于IIS 7.5 Express 新虚拟目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4731608/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com