This documentation is archived and is not being maintained.

Upgrading WebClass Projects to Visual Basic 2008

Visual Basic 6.0 WebClass projects (also known as IIS Application projects) can be upgraded to ASP.NET Web Site projects using the Upgrade wizard. The process for upgrading WebClass projects is essentially the same as for any other project type; however, there are some issues that you will want to be aware of.

When a WebClass project is upgraded, by default the project is created with a new project name of projectname.NET (where projectname is the name of the Visual Basic 6.0 project).

When a Visual Basic 6.0 WebClass project is upgraded to ASP.NET, the .asp file for the project is upgraded to an .aspx file. Any references to the .asp file within an HTML template file are not automatically changed to .aspx references. These are not upgraded because a template file might contain references to other .asp files that were not part of the WebClass project.

In addition, when files are copied to the new project directory during upgrade, only HTML template files are copied. Any other .html files or image files are not copied to the new directory.

When you add HTML files to an ASP.NET Web Site project, they are added as Content files by default. When a WebClass project is upgraded, HTML files are added as Embedded Resources. If you add HTML Files to the project after upgrading, you must set their Build Action property to Embedded Resource in order to make them visible to the application.


You can still reference an HTML file that is not embedded by providing a full path to the file.

If you have never created an ASP.NET Web Site Application before upgrading your first Visual Basic 6.0 WebClass project, you will need to set the project's StartUp object. You do so by right-clicking the .aspx file and selecting Set As Start Page from the shortcut menu before running the upgraded project.