Framework 1.1 and 2.0 (bate) compatibility (2)

Source: Internet
Author: User
Application loading mechanism and possible problems
By default, applications built using. NET Framework run with the Framework version used during the build (if this version is already installed on the computer. The following table specifies the loading behavior of applications under different. NET Framework configurations on the target computer.

The application may fail when the application code built using. NET Framework 2.0 is loaded through. NET Framework 1.1 and a disruptive change occurs. In the preceding table, cells in bold indicate the possible causes. The following section provides information on how to reduce potential problems in these situations.

Test applications developed using. NET Framework 2.0 in. NET Framework 1.1.
Because the application will run with the Framework version used during the build, there are two ways to run the application using. NET Framework 2.0:

& #8226; install and test on a computer that only has. NET Framework 2.0 Beta 2 installed.

& #8226; install the test version on a computer with. NET Framework 1.1 installed. Use the steps outlined on gotdotnet.com to force applications to run with. NET Framework 2.0.

Policies to reduce possible compatibility issues
By following one of the following policies, developers can reduce the possibility that applications are affected by. NET Framework changes. More information about the test is provided in the compatibility test plan.

Before the final version of. NET Framework 2.0 is released, we will check the compatibility status and consider restoring these changes when destructive changes affect the application. During the compatibility test, if you find that the application requires some changes to run correctly on the new version, please record errors on msdnproductfeedbackcenter.

1.
Test and repair
Always; Recommended

Used. one possible method for applications built by Net Framework 1.1 is to use.. NET Framework 2.0 tests the application, makes some necessary changes, and ensures that the application runs on both versions of the framework.

Development and test description this requires the team to test the two versions of the framework to expand the test matrix of the application. It may also require developers to make some modifications to the source code to ensure that the application runs on. NET Framework 1.1 and. NET Framework 2.0.

Market and operation meaning the application owner needs to communicate with customers and users about the issue and provide them with updated versions of applications compatible with the two versions of the framework.

2.
Deploy with. NET Framework 1.1
For independent hosting applications

By default, managed applications built using. NET Framework run with the version used during the build. If. NET Framework 1.1 is installed on the target machine, no application needs to be changed. To enable this scheme, the application owner should continue to publish. NET Framework 1.1 together with its application, or ensure that. NET Framework 1.1 is installed on all target machines.

If the. NET Framework application is hosted on a local host (such as Microsoft Office or Microsoft Internet Explorer), the application uses the latest. NET Framework version installed on the computer. This may mean that applications built on. NET Framework 1.1 may be forced to run using. NET Framework 2.0. If you write a local application that hosts the code (whether directly or through COM InterOP), you can configure the local EXE and select the runtime version used to build the hosted code; otherwise, your components must run on the latest version installed on your computer. For more information, see the following parallel document.

From the perspective of development and testing, it is necessary to ensure that. NET Framework 1.1 is installed on all machines. If it is a hosted component (the application that loads the hosted component), you may need to modify the configuration file of the application to ensure that even if it is installed on the computer. net Framework 2.0, the host process will also load. net Framework 1.1.

From the perspective of market and operation, the meaning of market and operation involves the need to allow users to install. NET Framework 1.1. If it is a local host, when users install. NET Framework 2.0 on their systems, it may also require customers and users to install new versions (or update application configuration files ).

3.
Upgrade to 2.0:
Applicable to all applications, but. NET Framework 2.0 needs to be installed

Developers who want to take advantage of the new features in. NET Framework 2.0 should upgrade the application to make it suitable for. NET Framework 2.0. This includes re-compiling the code, testing the application, and making some necessary changes.

In beta 2, ASP. NET developers need to understand the changes made in the project system and compilation model, which may affect the way their applications are upgraded to 2.0. Based on user feedback, we have supplemented the ASP. Net project upgrade system, which means that most applications only need to make the least changes.

Development and test meaning this requires updating the application to adapt to all destructive changes, testing the application in. NET Framework 2.0, and modifying the application to take advantage of all. NET Framework 2.0 features. Developers need to update the application installer to publish. NET Framework 2.0. (Note: isV may not re-release. NET Framework 2.0 during beta 2 "stay active .)

Market and operation meaning the application owner needs to communicate with the customer, and the user needs to install. NET Framework 2.0 and updated application bits.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.