Microsoft KB Archive/873193

= 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 =

Article ID: 873193

Article Last Modified on 11/14/2007

-

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.



Steps to reproduce the behavior
 Create a serviced component on a computer that has the .NET Framework 1.1 installed. To do this, follow these steps:  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. In Solution Explorer, right-click References, and then click Add Reference. The Add Reference dialog box appears. On the .NET tab, double-click System.EnterpriseServices, and then click OK.  Replace the code in the Class1.vb file with the following code: Imports System.EnterpriseServices

Public Class Class1 Inherits ServicedComponent

End Class </li></ol> </li> Generate a strong name for the serviced component. To do this, follow these steps: <ol style="list-style-type: lower-alpha;">  At the Microsoft Visual Studio .NET Command Prompt, run the following command: sn -k FileName.snk is a placeholder for the name of the file where the strong name key pair will be written. </li> Close the Visual Studio .NET Command Prompt.</li></ol> </li>  Add the following code at the end of the AssemblyInfo.vb file: <Assembly: AssemblyKeyFile(&quot;FilePath&quot;)> is a placeholder for the complete path of the .snk file that you created in step 2. </li> On the Build menu, click Build Solution.</li> On the File menu, click Exit.</li> In Control Panel, open Administrative Tools. The Administrative Tools window appears.</li> Double-click Component Services. The Component Services window appears.</li> Create an empty Microsoft COM+ application. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> In the Component Services window, double-click Component Services, expand Computers, and then expand My Computer.</li> Right-click COM+ Applications, point to New, and then click Application. The Welcome to the COM+ Application Install Wizard dialog box appears.</li> In the Welcome to the COM+ Application Install Wizard page, click Next. The Install or Create a New Application page appears.</li> Click Create an empty application. The Create Empty Application page appears.</li> 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.</li> 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.</li> Click Finish to close the wizard.</li></ol> </li> <li>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: <ol style="list-style-type: lower-alpha;"> <li>In the Component Services window, expand COM+ Applications, and then expand the MyComApp application that you created in step 8.</li> <li>Right-click Components, point to New, and then click Component. The Welcome to the COM+ Component Install Wizard dialog box appears.</li> <li>In the Welcome to the COM+ Component Install Wizard page, click Next. The Import or install a component page appears.</li> <li>Click Install new component(s). The Select files to install dialog box appears.</li> <li>Click the strong-named assembly that you created in step 1, and then click Open. The Install new components page appears.</li> <li>Click Next. The Thank you for using the COM+ Component Install Wizard page appears.</li> <li>Click Finish.</li></ol> </li> <li>Create an application proxy. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>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.</li> <li>Click Next. The Application Export Information page appears.</li> <li>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.</li> <li>Click Next. The Thank you for using the COM+ Application Export Wizard page appears.</li> <li>Click Finish. You can see that a Microsoft Windows Installer package (.msi file) is generated in the location that you specified in step 10c.</li></ol> </li> <li>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 &quot;Symptoms&quot; section.</li></ol>

<div class="references_section">