1
Vote

Problem when installing on a x64 based .NET framework

description

When installing on a x64 release of Windows, the installing of the assemblies using installutil result in the following error:
 
 
Register PowerShell Remoting Client Snapin
Microsoft (R) .NET Framework Installation utility Version 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
 
Exception occurred while initializing the installation:
System.BadImageFormatException: Attempted to load a 64-bit assembly on a 32-bit platform. Use ReflectionOnlyLoad() instead if trying to load for reflection purposes..
 
Installation Failed!
 
 
This problem can be resolved by editing the install.ps1. The command for installutil should read:
 
%systemroot%\Microsoft.NET\Framework64\v2.0.50727\installutil.exe
 
This is described in
 
http://msdn2.microsoft.com/en-us/library/ms714644.aspx

comments

gbraad wrote Apr 25, 2007 at 9:23 PM

Needs to be resolved in the install.ps1

wrote Feb 13, 2013 at 11:26 PM