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 Burn causes a "mixed mode" error when trying to use SMO to run SQL #4685
Comments
What version of .NET does your BA target? Please provide your BootstrapperCore.config file. Also, can you confirm that you ran the bundles on the same machine? What is the OS on that machine, and which versions of .NET are installed on the machine?
|
Our BA targets .net 4.5.
We ran the bundle executable on multiple machines, the OS was Windows 7 and Windows server 2012, and in both cases we had .net 2.0, 3.5, 4.0, and 4.5 installed.
|
To remove any ambiguity from the last sentence in the previous comment: We ran both 3.8 and 3.9R2 bundles on the same machines, and we ran them on multiple machines as specified.
|
Thanks, that should be enough information for me to try to reproduce it this weekend.
|
|
Our custom BA runs some SQL scripts, and it uses the Shared Management Objects (SMO), so the DLLs are referenced by our custom WPF BA project, and included in bundle.wxs in the wix BA project.
We have been doing this successfully with WiX 3.8. However since upgrading to WiX 3.9 R2 the BA throws an exception:
Mixed mode assembly is built against the 2.0.50727 and cannot be loaded in the 4.0 runtime without additional configuration information
We made sure to go back to an older version of the code, and built it using both 3.8 and 3.9 R2. The 3.8 one succeeds, the 3.9 R2 one fails.
If it matters we are using version 10 (2008) of SMO.
The text was updated successfully, but these errors were encountered: