I created a new application with VS2010 which by default uses the .NET 4.0. I added some canned function from an existing application which uses .NET 3.5. The canned functions use SMO so I added the 10.0.0.0 SMO from the SDK that I have on my
system. When I run the application it throws and can't use 2.0 with 4.0 error.
Is there a new SDK for SQL that uses the NET 4.0? Or another work around?
The SQL SDK I am using is August 2008
Microsoft.SqlServer.Management.Smo.FailedOperationException: ExecuteNonQuery failed for Database 'TM-Data'. ---> System.IO.FileLoadException: 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.John J. Hughes
View Complete Post