DeployLX Software Protection System

Targeting the 32-bit Runtime

When an assembly has been protected with Code Encryption or uses Whole Project Bundling and Encryption the host application must target the 32-bit .NET runtime supported on 32- and 64-bit versions of Windows.

To target 32-bit from Visual Studio

  1. Open your project in Visual Studio.
  2. Select Project | Properties.
  3. Select the Build tab.
  4. Change Platform target from Any CPU to x86.

To target 32-bit with CORFLAGS

  1. Execute the following corflags /32bit+ "%PATHTOEXE%"

To configure IIS to use 32-bit on a 64-bit Windows XP or 2003 machine

  1. Open a command prompt to %systemdrive%\Inetpub\AdminScripts.
  2. Run the following command:

    cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64   “true” 

To configure IIS to use 32-bit on a 64-bit Windows 7, Vista or 2008 machine

  1. In IIS Manager, select Application Pools.
  2. Select the Application Pool that will host your veiled assembly.
  3. In the Actions pane, select Advanced Settings under Edit Application Pool.
  4. Expand the Generate Settings section, set Enable 32-bit Applications to True.

See Also