Running Web Applications Side-By-side
Running Web Applications Side-By-side
You can specify which version of the .NET Framework you want a Web application to use. Version 4.0 of the framework is backward-compatible with versions 2.0, 3.0, and 3.5. You can then run your existing applications in version 4.0 and take advantage of improved security and performance features without recompiling.
Book II Chapter 4
Upgrading .NET
Configuring your Web application to use version 4.0 of the .NET Framework requires that the .NET Framework version 4.0 is installed on the server where the application is hosted. If that version isnt installed, browse to the Windows Update site on the server and install it. To configure a Web application to use version 4.0 of the .NET Framework, follow these steps: 1. Launch the Internet Information Services Manager on the server. In Windows 7, you can find the IIS Manager by choosing Administrative Tools in the Control Panel. 2. Select View Application Pools item. 3. Right-click any items under the Name column. A menu appears. 4. Select Basic Settings. 5. Set the version by using the ASP.NET version drop-down list, as shown in Figure 4-3. 6. Click OK.
Figure 4-3: Set the version of the .NET Framework you want the site to use.
121
122
If you like to take control of your conversions, you can re-create your applications manually in Visual Studio 2010. Heres the overview: 1. Create new Windows or Web solutions. 2. Use the visual designers to manually re-create your forms, pages, user controls, and any other elements that are in your existing application. Make sure to keep your naming style consistent with your old application. 3. Copy any code that you want to bring over from your old solution. Your code should work as long as you re-created all your Windows and Web forms properly. 4. Build your applications and deal with errors.