You receive an error message when you install an application proxy on the .NET Framework 1.0 after you export an application proxy on the .NET Framework 1.1 (873193)



The information in this article applies to:

  • Microsoft .NET Framework 1.1
  • Microsoft .NET Framework 1.0

SYMPTOMS

When you export an application proxy from a computer with the Microsoft .NET Framework 1.1 installed and then you try to install the application proxy on a computer that has the .NET Framework 1.0 installed, you receive the following error message:

Error registering COM+ Application. Contact your support personnel for more information.

CAUSE

The versions of the common language runtime for the .NET Framework 1.1 and the .NET Framework 1.0 are different. The common language runtime is the execution engine for applications that are based on the .NET Framework. Therefore, the installation of the application proxy fails.

RESOLUTION

To resolve this problem, you must install the .NET Framework 1.1 on the computer before you install the application proxy.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to reproduce the behavior

  1. Create a serviced component on a computer that has the .NET Framework 1.1 installed. To do this, follow these steps:
    1. In Microsoft Visual Studio .NET, create a new Class Library project that is named ServicedCOM by using Microsoft Visual Basic .NET.

      By default, two files that are named Class1.vb and AssemblyInfo.vb are created.
    2. In Solution Explorer, right-click References, and then click Add Reference. The Add Reference dialog box appears.
    3. On the .NET tab, double-click System.EnterpriseServices , and then click OK.
    4. Replace the code in the Class1.vb file with the following code:
      Imports System.EnterpriseServices
      
      Public Class Class1
          Inherits ServicedComponent
      
      End Class
  2. Generate a strong name for the serviced component. To do this, follow these steps:
    1. At the Microsoft Visual Studio .NET Command Prompt, run the following command:
      sn -k FileName.snk
      FileName is a placeholder for the name of the file where the strong name key pair will be written.
    2. Close the Visual Studio .NET Command Prompt.
  3. Add the following code at the end of the AssemblyInfo.vb file:
    <Assembly: AssemblyKeyFile("FilePath")> 
    FilePath is a placeholder for the complete path of the .snk file that you created in step 2.
  4. On the Build menu, click Build Solution.
  5. On the File menu, click Exit.
  6. In Control Panel, open Administrative Tools. The Administrative Tools window appears.
  7. Double-click Component Services. The Component Services window appears.
  8. Create an empty Microsoft COM+ application. To do this, follow these steps:
    1. In the Component Services window, double-click Component Services, expand Computers, and then expand My Computer.
    2. Right-click COM+ Applications, point to New, and then click Application. The Welcome to the COM+ Application Install Wizard dialog box appears.
    3. In the Welcome to the COM+ Application Install Wizard page, click Next. The Install or Create a New Application page appears.
    4. Click Create an empty application. The Create Empty Application page appears.
    5. In the Enter a name for the new application box, type MyComApp. Make sure that you click Server application under Activation Type, and then click Next. The Set Application Identity page appears.
    6. Make sure that you click Interactive user - the current logged on user, and then click Next. The Thank you for using the COM+ Application Install Wizard page appears.
    7. Click Finish to close the wizard.
  9. Add the serviced component that you created in step 1 to the COM+ application that you created in step 8. To do this, follow these steps:
    1. In the Component Services window, expand COM+ Applications, and then expand the MyComApp application that you created in step 8.
    2. Right-click Components, point to New, and then click Component. The Welcome to the COM+ Component Install Wizard dialog box appears.
    3. In the Welcome to the COM+ Component Install Wizard page, click Next. The Import or install a component page appears.
    4. Click Install new component(s). The Select files to install dialog box appears.
    5. Click the strong-named assembly that you created in step 1, and then click Open. The Install new components page appears.
    6. Click Next. The Thank you for using the COM+ Component Install Wizard page appears.
    7. Click Finish.
  10. Create an application proxy. To do this, follow these steps:
    1. Right-click the COM+ application that you created in step 8, and then click Export. The Welcome to the COM+ Application Export Wizard dialog box appears.
    2. Click Next. The Application Export Information page appears.
    3. Type the full path where the application proxy has to be created in the box. Under Export as, click Application proxy - Install on other machines to enable access to this machine.
    4. Click Next. The Thank you for using the COM+ Application Export Wizard page appears.
    5. Click Finish. You can see that a Microsoft Windows Installer package (.msi file) is generated in the location that you specified in step 10c.
  11. Run the .msi file that is created in step 10 on a computer that has .NET Framework 1.0 installed. You receive the error that is mentioned in the "Symptoms" section.

REFERENCES

For more information, visit the following Microsoft Developer Network (MSDN) Web sites:

Modification Type:MajorLast Reviewed:11/19/2004
Keywords:kbtshoot kberrmsg kbPackage kbCOMServices kbcomplusobj kbAppWizard kbsetup kbProxyDev kbExport kbDeployment kbprb KB873193 kbAudDeveloper