HOWTO: Delete a Web Project Created in Visual InterDev 1.0

ID: Q190581


The information in this article applies to:


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.

  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.


  2. 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.



REFERENCES

For the latest Knowledge Base articles and other support information on Visual InterDev and Active Server Pages, link to the following Microsoft Technical Support site:

http://support.microsoft.com/support/vinterdev/

Additional query words: viasp


Keywords          : kbASP kbExtension kbFrontPage kbServer kbVisID kbVisID100 kbVS97 kbGrpASP 
Version           : WINDOWS:1.0,97
Platform          : WINDOWS 
Issue type        : kbhowto 

Last Reviewed: July 9, 1999