The ISAPIWorkerRequest.MapPath method returns a nonexistent path when the directory name contains a period character in Visual Studio .NET 2003 or in Visual Studio 2005 (812342)



The information in this article applies to:

  • Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2003), Academic Edition
  • Microsoft Visual Studio 2005 Professional Edition
  • Microsoft Visual Studio 2005 Standard Edition

SYMPTOMS

In Microsoft Visual Studio .NET 2003 or in Visual Studio 2005, the ISAPIWorkerRequest.MapPath method returns a nonexistent path.

CAUSE

This problem occurs if the virtual directory name contains a period (.) character, and the virtual directory name is different from the physical directory name.

WORKAROUND

Do not use the period character in the virtual directory name if the virtual directory is mapped to a physical directory that has a different name and the physical directory name also contains a period character.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Modification Type:MajorLast Reviewed:3/6/2006
Keywords:kbvs2005swept kbvs2005applies kbBug KB812342 kbAudDeveloper kbAudITPRO