Could not load file or assembly 'Microsoft.SqlServer.Replication'

S

seanbrasher

I have a web application that uses the
Microsoft.SqlServer.Management.Smo namespace objects to do some things
with SQL Server. On my box I have the client for SQL 2005, but the
test database that I am hitting is 2000.

Everything works great until I get ready to install this on the test
server that belongs to our client. The server is Windows 2003 and does
not have the SQL 2005 client installed. What's happening is that we're
getting the above error.

The bin folder contains the Microsoft.SqlServer.Replication.dll and a
Microsoft.SqlServer.BatchParser.dll along with my web application
dlls. So it should have no problem.

I have Googled this and read that installing the SQL 2005 client on
the box would solve this, but that is not an option with this server.
Also, I have read that putting the DLLs into the GAc would help, but
these DLLs are not strongly named, or at least I don't have the name
files to put them into the GAC.

How can I get this DLL reference to work?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,526
Members
44,997
Latest member
mileyka

Latest Threads

Top