SBS 2008: Troubleshooting x64 Framework not working (actually crashing) issue

Here's an issues with SBS 2008, — the Console wasn't launching (it was actually crashing), along with a lot of other services and programs also weren't able to start successfully on this server. These included most of Exchange services, Windows SBS Manager service and almost all of SBS wizards to mention a few of the […]

Here's an issues with SBS 2008, — the Console wasn't launching (it was actually crashing), along with a lot of other services and programs also weren't able to start successfully on this server. These included most of Exchange services, Windows SBS Manager service and almost all of SBS wizards to mention a few of the issues. The exception on every failure was always same: Exception type: System.BadImageFormatException.

The answer was on a registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\Enable64Bit. Default value for this key is 1, where as it was set to 0, forcing framework applications to run in a 32-bit environment. To correct this, change the value back to 1 and reboot. You could also use native tool that configures this:

C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Ldr64.exe set64
loading kernel32...done.
retrieved GetComPlusPackageInstallStatus entry point
retrieved SetComPlusPackageInstallStatus entry point
Setting status to: 0x00000001
SUCCESS

[Source]