Editar

Partilhar via


How to Deploy a New Version of an Application to Run Side-by-side with an Existing Version

How to deploy a new version of an application that will run side-by-side with an existing version.

Overview

You might want to do this to roll out a major application upgrade incrementally, for example making it available to a subset of business partners initially, rather than to all partners at once. Using this approach allows you to continue running the existing application to service the users who are not yet using the new version until you are ready to completely cut over to the new version. For background information on this scenario, see Scenario: Deploying Two Versions of an Application.

You do not create application versions in the same manner that you create assembly versions, by incrementing the version number. Instead, you create a new application that has a different name than the original application, and populate it with the new versions of the application artifacts.

Because many types of artifacts, such as assemblies, can exist in only one application in a BizTalk group, you must increment the version number of any assemblies that already exist in the group before you can deploy them into the new application. For more information, see Artifacts That Must Be Unique in an Application or Group.

Prerequisites

Sign in with an account that is a member of the BizTalk Server Administrators group. Your account also must have Read/Write permission on the local file system, and the global assembly cache. The Administrators account on the local computer has this permission.

For more detailed information about permissions, see Permissions Required for Deploying and Managing a BizTalk Application, and Minimum Security Rights.

Deploy a new version of an application

  1. In Visual Studio, make any necessary changes to the assemblies that you want to deploy into the new version of the application

  2. Increment the version number of each assembly, as follows:

    1. In Solution Explorer, right-click the BizTalk project, and then click Properties to launch Project Designer for the project.

    2. Click the Application tab if it is not active, and then click Assembly Information button.

    3. Increase the assembly version number, and then click OK.

    4. Save the project.

    Note

    Use the Pipeline Designer Object Model to avoid schema collisions when incrementing assembly versions.

  3. In deployment properties for each project in the solution, do the following:

    • Change the application name to the name you want to use for the new application.

    • Ensure that the option to install the assemblies in the global assembly cache (GAC) is selected.

      For instructions, see How to Set Deployment Properties in Visual Studio. When you deploy the solution, the assemblies will be deployed into the new application and installed in the GAC.

  4. Deploy the solution(s) containing the assemblies. For instructions, see How to Deploy a BizTalk Assembly from Visual Studio.

  5. Create a new receive port and any needed receive locations specifying the new URL(s) to which you want partners to send messages. For instructions, see How to Create a Receive Port. Also see How to Create a Receive Location.

  6. Create the appropriate send ports as necessary, as described in How to Create a Send Port.

  7. Bind the new application to the newly created receive and send ports, as described in How to Configure an Application.

  8. Export the application into an .msi file from your test environment, as described in How to Export a BizTalk Application.

    Note

    You can use the following steps for testing the application as well as deploying it into your production environment. For more information about application deployment tasks in development, test, staging, and production, see Application Deployment Tasks.

  9. Import the application .msi file into the BizTalk group in your production environment, as described in How to Import a BizTalk Application. If the application requires references, you can add them while using the Import MSI Wizard, or later as described in How to Add a Reference to Another Application.

  10. Install the new application on each host instance that will run it, as described in How to Install a BizTalk Application. Verify that each updated assembly has been installed in the GAC on each computer that hosts the assembly. If necessary, install the assemblies in the GAC, as described in How to Install an Assembly in the GAC.

  11. Perform a Full Start of the application, as described in How to Start and Stop a BizTalk Application.

  12. Notify your partners that they should begin sending messages to the new URLS. Once they do this, the application begins processing messages for the specified partners.

See Also

Updating BizTalk Applications