Error installing SCOM 2012 Console

When installing the OpsMgr 2012 console on a computer with .NET 4.0 you might get the following error in Omconsole.log

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.NotSupportedException: This method explicitly uses CAS policy, which has been obsoleted by the .NET Framework. In order to enable CAS policy for compatibility reasons, please use the NetFx40_LegacySecurityPolicy configuration switch. Please see http://go.microsoft.com/fwlink/?LinkID=155570 for more information.

at System.Security.SecurityManager.PolicyHierarchy()

at Microsoft.MOMv3.Setup.MOMv3ManagedCAs.GetPolicyLevel(String policyLevelName)

at Microsoft.MOMv3.Setup.MOMv3ManagedCAs.AddFullTrustForAssembly(Session session)

— End of inner exception stack trace —

at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)

at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture, Boolean skipVisibilityChecks)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture)

at Microsoft.WindowsInstaller.CustomActionProxy.InvokeCustomAction(Int32 sessionHandle, String entryPoint)

MSI (s) (D4:90) [12:58:59:140]: NOTE: custom action _AddCodeGroup.6C283D0A_50A8_439C_BDF9_0BA55C19F3FE unexpectedly closed the hInstall handle (type MSIHANDLE) provided to it. The custom action should be fixed to not close that handle.

CustomAction _AddCodeGroup.6C283D0A_50A8_439C_BDF9_0BA55C19F3FE returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)

MSI (s) (D4:54) [12:58:59:188]: User policy value ‘DisableRollback’ is 0

MSI (s) (D4:54) [12:58:59:188]: Machine policy value ‘DisableRollback’ is 0

Action ended 12:58:59: InstallFinalize. Return value 3.

Solution:

1. Backup “C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config” file

2. Modify the file with the following (If it doesn’t exist, add it to the file):

<runtime>

<NetFx40_LegacySecurityPolicy enabled=”true”/>

</runtime>

3. Save the file

4. Install the OpsMgr 2012 Console

5. Remove the section from the machine.config file and save it.

This entry was posted in SCOM 2012. Bookmark the permalink.