我有一个在VS2015中的Web项目(使用IIS Express),需要添加一个虚拟目录以供下载文件。这些文件是由另一个进程创建的。我已经按照下面所示将一个条目添加到我的applicationhost.config文件中。每当我启动服务器并直接访问该位置的文件时,IIS Express日志中都会出现404错误。
<site name="CustomerPortal" id="2">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="C:\Dev\WebApps\CustomerPortal\src\CustomerPortal\wwwroot" />
<virtualDirectory path="/WebReports" physicalPath="\\backup03\WebReports" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:49373:localhost" />
</bindings>
</site>
在VS2015中添加虚拟目录是否有不同的方法?
我正在编辑项目目录下的.config/applicationhost.config文件。