Migrating a WebReports for ASP.NET Project to Visual Studio 2005
To migrate a project using ComponentOne components to Visual Studio 2005, there are three main steps that must be performed. First, you must convert your project to Visual Studio 2005, which includes removing any references to a previous assembly and adding a reference to the new assembly. Secondly, the .licx file, or licensing file, must be updated in order for the project to run correctly. Finally, the assembly reference in each WebForm must be updated to reference the new assembly.
To convert the project:
1. Open Visual Studio 2005 and in the File menu, select Open and choose Web Site from the submenu.
2. Locate the folder for the ASP.NET project that you wish to convert to Visual Studio 2005. Select it and click Open. The Visual Studio Conversion Wizard appears.
3. Click Next.
4. Select Yes, create a backup before converting to create a backup of your current project and click Next.
5. Click Finish to convert your project to Visual Studio 2005. The Conversion Complete window appears.
6. Click Show the conversion log when the wizard is closed if you want to view the conversion log.
7. Click Close. The project opens. Now you must remove references to any of the previous ComponentOne .dlls and add references to the new ones.
8. Go to the Solution Explorer (View | Solution Explorer) and select the project node. Click the Properties button.
9. The Property Pages dialog box opens. Select the C1.Web.C1Report reference and click Remove.
10. Click Add Reference. Locate and select the C1.Web.C1Report.2.dll. Click OK to add it to the project.
Note: If a reference to C1.Win.C1Report exists, remove the reference and add a reference to C1.C1Report.2.dll
11. Click OK to close the Property Pages dialog box.
To update the .licx file:
1. In the Solution Explorer, right-click the licenses.licx file and select Delete.
2. Click OK to permanently delete licenses.licx.
3. If the webform is not open, double-click the .aspx file to open it. Switch to Design view to create a new licenses.licx file.
To update each WebForm:
1. Open an .aspx file. Switch to Source view and locate the line at the top of the document that reads:
<%@ Register TagPrefix="cc1" Namespace="C1.Web.C1WebReport" Assembly="C1.Web.C1WebReport" %>
2. Change it to read:
<%@ Register TagPrefix="cc1" Namespace="C1.Web.C1WebReport" Assembly="C1.Web.C1WebReport.2" %>
3. Repeat for each .aspx file.
4. Right-click the main .aspx page and select Set As Start Page.
5. Click the Start Debugging button to compile and run the project.
The migration process is complete.
|