Deploy SMO application to workstation without SQL Server 2008 installed

Posted by Matt on Stack Overflow See other posts from Stack Overflow or by Matt
Published on 2010-06-15T11:34:29Z Indexed on 2010/06/15 17:32 UTC
Read the original article Hit count: 213

Filed under:
|
|
|
|

I am trying to deploy an application that uses SMO on a workstation without SQL Server installed on it. The instance the app is connecting to is SQL Server 2008. The application is failing with:

Could not load file or assembly 'Microsoft.SqlServer.Replication, Version 10.0.0.0, Culture=neutral, PublicKeyToken=89845cdc8080cc91' or one of its dependencies. An attempt was made to load a program with an incorrect format.

The assembly in question is in the same path as my application as well as system32. I am running this on a Windows 7 64 bit box. I have run SQL Native Client, CLR, and SMO MSIs from the 2008 SMO redist download page.

This app worked fine when connecting to SQL Server 2005.

What gives?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET