c# - SMO code support to both sql 2005 and sql 2008 -


prepared manged c# dll using assemblies of smo of version:10.0.0.0 of sql 2008 , called functions in dll unmanged c++ code. application running sql server 2008 application throwing exception when run sql server 2005 follows:

description: not load file or assembly 'microsoft.sqlserver.smo, version=10.0.0.0, culture=neutral, publickeytoken=89845dcd8080cc91' or 1 of dependencies. system cannot find file specified.

what reason?
failing in sql 2005 because of version mismacth of smo?
how can give support sql 2005 , sql2008 in application using single c# dll?

i faced same issue before, running application same machine have 2008 , 2005 installed?

if not suggest install smo libraries sql 2008 on machine/client on running assembly.

this download give libraries


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -