The physical path of the IIS 7.5 website returns from UNC to the drive letter when you open a project in Visual Studio

I am running an ASP.NET site using IIS 7.5 running on my local computer (Windows 7). The directory for the website is stored on a network drive (Windows Server 2003).

In IIS Manager, if the physical path of the website is set to

N: \ Path \ K \ Site \ Directory

running the site returns an IIS error.

HTTP Error 500.19 - Internal Server Error

The requested page is not available because the configuration data associated with it is invalid for the page.

If the physical path is changed to a UNC path

\\ server_name \ Path \ To \ Site \ Directory

the site is working properly.

The problem is that when a project opens in Visual Studio, the physical path in IIS returns from the UNC path to the drive letter.

+3

All Articles