Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 在Visual Studio中打开项目时,IIS 7.5网站物理路径从UNC恢复为驱动器号_Visual Studio_Iis_Iis 7.5 - Fatal编程技术网

Visual studio 在Visual Studio中打开项目时,IIS 7.5网站物理路径从UNC恢复为驱动器号

Visual studio 在Visual Studio中打开项目时,IIS 7.5网站物理路径从UNC恢复为驱动器号,visual-studio,iis,iis-7.5,Visual Studio,Iis,Iis 7.5,我正在本地计算机(Windows 7)上使用IIS 7.5运行ASP.NET站点。网站目录存储在网络驱动器(Windows Server 2003)上 在IIS管理器中,如果网站物理路径设置为 N:\Path\To\Website\Directory 运行该站点将返回一个IIS错误 HTTP错误500.19-内部服务器错误 无法访问请求的页面,因为该页面的相关配置数据无效 如果物理路径更改为UNC路径 \\Servername\Path\To\Website\Directory 工地按预期进行

我正在本地计算机(Windows 7)上使用IIS 7.5运行ASP.NET站点。网站目录存储在网络驱动器(Windows Server 2003)上

在IIS管理器中,如果网站物理路径设置为

N:\Path\To\Website\Directory

运行该站点将返回一个IIS错误

HTTP错误500.19-内部服务器错误

无法访问请求的页面,因为该页面的相关配置数据无效

如果物理路径更改为UNC路径

\\Servername\Path\To\Website\Directory

工地按预期进行

问题是,在Visual Studio中打开项目时,IIS中的物理路径将从UNC路径恢复为驱动器号