SSIS - Mixed Mode Assembly Error

rick
rick used Ask the Experts™
on
I'm trying to run a test SSIS package using DTEXEC.EXE.   The package, which ONLY has an Execute SQL in it, runs fine in Visual Studio Version 12.

When I run from command line using DTEXEC.EXE, i get the following error:  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

I've searched the web and found the suggestion to add useLegacyV2RuntimeActivationPolicy="true".  If that's true for me in SSIS, I do not know how to do it.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Megan BrooksSQL Server Consultant

Commented:
Are you calling into a custom assembly from within your RDL -- I.e. does your RDL contain an explicit assembly reference? (The execution behavior can be different depending on whether you are running inside of VS or not.)

Author

Commented:
No assembly.  This is just a basic SSIS package with basically nothing in it, except an "Execute SQL" statement.  No coding at all.
SQL Server Consultant
Commented:
It sounds like a version mismatch of some sort. "v2.0.50727" sounds like a particular build of .Net Framework 2.0.

Here is a similar question/solution: Unable to run SSIS Package from SQL Agent (note that SQL Agent uses DTEXEC). It may not match your situation exactly, but I think it may be the sort of thing we are looking for. In general, the runtime environment within VS can differ from the command line runtime environment.

Do you have more than one version of the SQL Server client tools installed? Specifically, might there be more than one version of DTEXEC present on PATH?

Author

Commented:
It is a version issue.  thank you

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial