0
Published

PowerShell Operations fail with Mixed mode assembly is built against a specific version

Curtis Lusmore 8 years ago updated by anonymous 8 years ago 1

Overview

PowerShell standard or check operations fail with a message similar to:

Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.        

Affected Software

  • MIM Event Broker
  • PowerShell

Symptom

Either standard or check PowerShell operations fail with a Mixed Mode exception listed above.

Resolution

The application configuration of the Event Broker service will need to be updated with the following configuration, under the configuration element:

<startup useLegacyV2RuntimeActivationPolicy="true">
  <supportedRuntime version="v4.0" />
</startup>        

This configuration file can be found by default at:

C:\Program Files\UNIFY Solutions\Event Broker\Services\Unify.Service.Event.exe.config