Microsoft KB Archive/190581

= How To Delete a Web Project That Is Created in Visual InterDev 1.0 and 6.0 =

Article ID: 190581

Article Last Modified on 5/2/2006

-

APPLIES TO


 * Microsoft Visual InterDev 1.0 Standard Edition
 * Microsoft Visual InterDev 6.0 Standard Edition

-



This article was previously published under Q190581



SUMMARY
This article describes how to properly delete a Web project created with Visual InterDev. The process requires deleting project files both on the Web server and on the development workstation or server. Also, this article will show how to recover a Web project that has been accidentally deleted on the Web server.

This article assumes that the Web project being deleted is not under source control such as with Visual SourceSafe.

NOTE: This requires administrator-level privileges on machines running Windows NT.



MORE INFORMATION
There are several methods to delete a Web application created with Visual InterDev. This article will focus on only one of these methods.

This method will use both Visual InterDev and Windows Explorer to delete a Web project on the Web server and on the development workstation or server.

Steps for Visual InterDev 1.0

 * 1) From the development workstation or server, open Visual InterDev. Open the workspace where the project resides. Highlight the project by clicking the project within the workspace (usually the project name will have the following naming convention: //servername/projectname).

NOTE: When creating a Web project and accepting the default values, the workspace name will be the same as the Web project's name.
 * 1) From Edit the menu, click Delete. Alternatively, right-click the project name and select Delete.

The following dialog box will appear:   Do you want to delete '//servername/projectname' from this workspace? Click Yes. Another dialog box will appear:   Do you also want to delete 'projectname' from the server? This action will remove all the associated files from the server and cannot be  undone. Again, click Yes.

The project files and the virtual directory on the Web server will be deleted. However, the workspace will still exist on the development workstation or server.

To remove the workspace on the development workstation or server, close Visual InterDev if it is opened. This ensures that there is no sharing violation with the workspace directory. Then, go into Windows Explorer. Locate the workspace directory. By default, the workspace directory is C:\Project Files\DevStudio\MyProjects\workspacename. And, delete the workspace directory.

NOTE: It is not recommended to use Windows Explorer to delete the Web application on the Web server. By default, the location where the Web application resides is C:\InetPub\wwwroot\projectname. This can cause possible errors with the FrontPage Server Extension configuration files and with the Internet Information Server metabase.

If a Web project is accidentally deleted on the Web server through methods other than using Visual InterDev, there are several ways to recover the Web project. The initial method relies on restoring from the most recent Web server backup available.

NOTE: Another method through Visual InterDev works only if none of the project files on the development workstation or server were released (that is, right-clicking the project file and Release Working Copy; or from the Project menu, select Web Project, Release Working Copy) and all of the project files where retrieved from the Web server (that is, right-clicking the project file and Get Working Copy; or from the Project menu, select Web Project, Get Working Copy). Once a project file is released, it does not exist on the development workstation or server.

Use the following steps to recover from an accidentally deleted Web application:
 * 1) On the development workstation or server, close Visual InterDev. Go into Windows Explorer and locate the project within workspace directory. By default, the workspace directory is C:\Project Files\DevStudio\MyProjects\workspacename.
 * 2) Rename the workspace directory.
 * 3) Go into Visual InterDev and re-create the workspace with same workspace name as the deleted Web project. Add the project files by right-clicking //servername/projectname and selecting Add Files (or from the Project menu, select Add To Project and then Files). Select the renamed workspace directory and add all the files except for those files with the following extensions: *.dsp, *.dsw, *.opt, and *.sfl. These excluded files are project configuration files used by Visual InterDev and will be created when the new workspace is created.

Steps for Visual Interdev 6.0
 Start Visual Interdev and open the solution where the project resides. In the project explorer, right click the desired /web server/project name item, and click Delete.  A message box will appear with the following text:   [Delete Project] You are about to delete the project "project name". Which files do you want to remove? o Local Web project and all associated files o Master Web project and all associated files o Both the master and local Web Projects and all files [ok][cancel][help] If you are sure that you want to delete this project choose "both master and local", note that if you delete both master and local copies you will not be able to recover the webproject later if you do not have a back up.

When you remove the master copies, you will remove the application and all its files from the webserver. When you remove local files, you will remove the local copies of the files.  Close the project and click Save to save the solution file when asked. If this is the only project in the current solution, locate the project name.sln file on the development machine and delete the folder in which it resides in order to delete the remaining files of the web project.</li></ol>

<div class="references_section">