IIS 7.5 Express 新虚拟目录
如何添加新的虚拟目录?
我收到错误(找不到类型或命名空间名称“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>
how do i add new virtual directory?
I'm getting error (The type or namespace name 'xxx' could not be found) but the files are all in /bin.
i have tried editing the applicationhost.config like this:
<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>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要创建一个子应用程序。您的配置创建了子虚拟目录。下面的配置将 /SubFolderApp 变成一个应用程序。
You need to create a child application. Your configuration created child virtual directory. The configuration below turns /SubFolderApp into an application.