Can a CA Gen 8.5 .NET/C# server be built to run as a 64-bit COM+ application under 64-bit Component Services rather than 32-bit?

Document ID : KB000018178
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

In Gen 8.5 and 8.0 Interim Enhancement #2, Gen .NET servers and clients can be assembled to run as a 64-bit COM+ application under 64-bit Component Services by using the Build Tool Profile OPTIONS token OPT.BITS set to the value of 64.

Solution:

  • For all Gen C# applications (clients and servers) the generated code is compiled with the AnyCPU option so it can execute under a 32-bit (x86) or 64-bit (x64) environment and the same applies to the Gen .NET runtime assemblies (%GEN85%\Gen\.net\bin)

  • However the Build Tool Profile OPTIONS token OPT.BITS token needs to be set to 64 to force the Assemble step (%GEN85%\Gen\bt\scripts\deploy_msi_net.scr) to use the correct value for deployment to 64-bit Component Services.

  • ADDITIONAL NOTES:

    • 64-bit COM+ Applications will of course only run under a 64-bit Operating System.

    • If an ASP.NET Client is assembled with the same OPT.BITS=64 value then the IIS Application Pool that it is deployed to should also have the appropriate 64-bit setting enabled.