New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIX 3.9 failed to load managed BA on windows 2008R2 SP1 #4669
Comments
the line below will fail, when .net 4 is not installed.
|
That line is not the problem, because just above it mbahost tries to dynamically load that method. If .NET 4 isn't installed, then it will fail to load that method and fall back to trying to dynamically load the .NET 2 function. This bug should be closed unless the same exact code and BootstrapperCore.config for the managed BA compiled against WiX 3.8 works on the same exact machine. In that case we would need the BootstrapperCore.config, target .NET framework for the BA (or even the .dll itself), and the Burn log.
|
I see the dynamic load of pfnCLRCreateInstance, however, if SP1 installed on 2008R2, the mscoree.dll is updated to version v4.0.40305.0. and the dynamic load of pfnCLRCreateInstance actually succeed. additionally, the following case runs well.
|
Attached the config file below, The target framework for managed BA is .net 2, I just start a win form in the managed BA. I also tried in the config file, It looks like that if the line to dynamic load pfnCorBindToCurrentRuntime is not hit, the config file is useless.
|
Thanks for the info. I'll make it fallback to calling the .NET 2.0 function if the 4.0 one returns E_NOTIMPL.
|
Thank You, shall, that should be the fix.
|
|
I installed the version 3.10.0.1502 and I still have the same problem using Windows XP Log file:
Config file:
|
@CADIMA Does the exact same bundle code compiled with v3.8 work on the same exact machine? (This rules out corrupted .NET installs and verifies the BootstrapperCore.config is valid) Which .NET framework does your BA target? Which versions of .NET are installed on the machine?
|
The log says
|
on windows 2008R2 SP1(fresh installed),
WIX 3.9 failed to load managed BA, which is a win form UI based on .net 2.0
The way that WIX 3.9 used to get CLR Host has a dependency on .net framework 4, which would not be installed on a fresh 2008R2 SP1.
The text was updated successfully, but these errors were encountered: