Visual Studio Error: Creation of the virtual directory http://localhost:62498/ failed with the error: Filename: \\?C:…………………………

项目上传到team fundation server,其他人取出后出现下述错误。

 

 Error: Cannot write configuration file due to insufficient permissions. 

You will need to manually create this virtual directory in IIS before you can open this project.

 

 

 

从stack overflow 查看了一下相应问题的解决办法,大致明白了产生原因。

 

产生原因:为取下人员的目录与上传者的目录不一致所致。

 

 

解决办法:

 在项目文件夹内的 .vs文件夹,找到config文件夹,打开在config文件夹下的applicationhost.config文件,打开 后找到下述代码,将下述绝对路径修改为在下载者电脑 上的绝对路径随后保存再即可(小子的项目文件全部存储于VisualManagement文件夹中),打开后完全正常。

                <application path="/" applicationPool="Clr4IntegratedAppPool">
                    <virtualDirectory path="/" physicalPath="C:\ABC\IT.ABC\Global\WebApplication\VisualManagement\VisualManagement" />
                </application>

 

posted @ 2022-01-05 09:26  盛沧海  阅读(125)  评论(0编辑  收藏  举报