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

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

The project is uploaded to the team foundation server, and the following errors occur after others take it out.

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.

From the stack overflow}, I checked the solutions to the corresponding problems and roughly understood the causes.

Cause: the directory of the removed personnel is inconsistent with that of the uploader.

Solution:

In the project folder Vs folder, find the config folder, and open applicationhost.com under the config folder Config file, find the following code after opening, modify the following absolute path to the absolute path on the downloader’s computer, and then save it (all the project files of the child are stored in the visual management folder). It is completely normal after opening.

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