Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
WiX Burn causes a "mixed mode" error when trying to use SMO to run SQL #4685
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:
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.
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.