Differences Between Web Site Presentations and Web Application Presentations
To create a Web Site presentation type, click File, then click Add, then click New Web Site. In Solution Explorer, a Web Site presentation displays as a directory path (containing backslash characters), rather than as a project name. A web site does not contain a Visual Studio project file.
To create a Web Application presentation, click File, then click Add, then click New Project. In Solution Explorer, a Web Application displays as a simple identifier (without backslash characters). A Web Application contains DLL references and other settings in a Visual Studio project file.
Note: ePortal does not support website presentation types.
Upgrading to a Web Application
The legacy Web Site presentation type is not supported in this version of ClearPath ePortal Developer. Therefore, you must upgrade any existing Web Site presentations to a corresponding Web Application presentation.
Note: Before performing this procedure, you should make a backup copy of your entire solution.
For each existing web site, do the following:
Add a new Web Forms Application. Refer to Creating Web Forms Application Projects for instructions.
In Solution Explorer, right-click the Pages directory in the new Web Application project and select Delete.
In Solution Explorer, right-click the Pages directory from the Web Site, and select Copy. Right-click the new Web Application project and select Paste.
Repeat step 3 to copy the App_Data directory from the Web Site to the new Web Application. If necessary, confirm overwriting the destination directory.
Also, copy any other directories you may have added (for example, App_Code, App_Resources, and Scripts) from the Web Site to the new Web Application.
If you have any external web service references in your web site, add each reference as a Service Reference in the web application.
In Solution Explorer, for each code-behind file (.aspx.cs) in the Pages/DataSourceProjectName directory of the new Web Application project, right-click the file and select Properties, then change Build Action to Content.
In Solution Explorer, right-click the Web Site and select Remove.
After converting each Web Site, you must rebuild your solution with the Rebuild Solution function; performing a Build Solution is not sufficient. Click Rebuild Solution from the Build menu. Refer to Rebuilding the Solution for more information.