BUG: "Directory does not have write permissions" error message when you add files to the remote root (320203)



The information in this article applies to:

  • Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2002), Academic Edition
  • Microsoft Visual Studio .NET (2002), Professional Edition

This article was previously published under Q320203

SYMPTOMS

When you create a new Web project and then try to add a new file to the project, you receive the following error message:
Directory does not have write permissions
You receive this error message when you do the following:
  • You create the new Web project by connecting to the root Web on a remote server.
  • You use the File Share access method (the default).
  • You add files with any of the following extensions:
    • .aspx
    • .ascx
    • .asmx
    • .cs
    • .xsd
    • .asax
    • .config
Notes
  • Other file types, such as .htm, .xml, and .css, can be added to the project with no error.
  • This problem does not occur when you connect to the local computer.

RESOLUTION

To work around this problem, follow these steps.

Note This workaround applies only if FrontPage Server Extensions from Microsoft are configured on the Web server.
  1. In the Solution Explorer window, right-click the project name, and then click Properties.
  2. Under Common Properties, click Web Settings.
  3. Change the Web Access Mode property from File Share to FrontPage.
  4. Close the project and then open it again.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section. This problem was corrected in Microsoft Visual Studio .NET 2003.

Modification Type:MinorLast Reviewed:8/30/2005
Keywords:kbvs2002sp1sweep kbbug kbIDEProject kbpending KB320203