[wix-users] Error loading prerequisite bootstrapper application because managed host could not be loaded

Brian C Cooke tonic889 at gmail.com
Wed Aug 5 14:03:58 PDT 2015


>
> Your startup element says your code only supports NETFX v2.x based CLRs.


I added <supportedRuntime version="v4.0" /> but I'm still getting the same
error.  I even tried specifying sku=".NETFramework,Version=v4.5" for fun
but no change.

Thanks,
Brian

On Tue, Aug 4, 2015 at 2:34 PM, Brian C Cooke <tonic889 at gmail.com> wrote:

>
>
>
>> I would bet that the problem is that the supportedFramework element is
>> v3.5
>> (which is the 2.0 runtime) but there's no supportedRuntime element for the
>> 2.0 CLR.
>
>
> Thanks, that fixes the scenario where .NET 3.5 is enabled on Windows 7.
> When it is disabled, I get the same error message with a different error
> code: "Loading prerequisite bootstrapper application because managed host
> could not be loaded, error: 0x80070490."  To review, this is with my BA
> targeting 3.5, .NET 3.5 disabled but NET 4.5 installed.  I should be able
> to run my 3.5 BA against the 4.5 runtime, correct?  An excerpt of my
> current bootstrappercore.config:
>
>   <startup useLegacyV2RuntimeActivationPolicy="true">
>     <supportedRuntime version="v3.5"  />
>     <supportedRuntime version="v2.0.50727" />
>   </startup>
>
>   <wix.bootstrapper>
>     <host assemblyName="MyBootstrapperApplication">
>
>       <supportedFramework version="v3.5"/>
>
>     </host>
>   </wix.bootstrapper>
>
> Thanks,
> Brian
>


More information about the wix-users mailing list