I use .net framework 4.0 and work on installing a web deployment, I refer to SQL Server 2008 SMO assemblies, and when I call the ExecuteNonQuery function in my setup using Smo Assemblies, it gives me this error: "Mixed mode combination built against version "v2.0.50727" of the runtime and cannot be loaded into runtime 4.0 without additional configuration information. " but sometimes it works correctly in my code, but for a while it gives this error,
I have the same class, the same method sometimes runs it correctly, and for a while it gives this error, I completely disappear with this error, I could not find any reason for this, and I also want to know that SMO assemblies available in .Net framework v4.0?
source share