SOLVED Can not load Backup Reader dll!

Automate and integrate using the SQL comparison API

SOLVED Can not load Backup Reader dll!

Postby ilya » Wed Dec 22, 2010 10:46 am

We wrapp the data compare functionality we need in a dll, which will be used our application.
The dll using SDK is compiled for x86, with recommended options for the pree and post-build events ( ... wledgebase\\all_SQL_products\\KB200806000268.htm&p=SQL%20Comparison%20SDK).
With the SQL Toolkit 6.0 we had no problems with backup reader dll and the above scenario.
Now with Comparison SDK 8 we have the exception "Cannot load Backup Reader dll!" on the code line:
IList<IBackupSet> backupSets = backupDB.GetBackupSets(files, passwords);
It doesn't help also to compile our application for x86.

Have you any ideas, how to get off of the exception?
Last edited by ilya on Thu Dec 23, 2010 11:22 am, edited 1 time in total.
Posts: 13
Joined: Wed Jul 30, 2008 8:28 am

Postby ilya » Thu Dec 23, 2010 11:17 am


Our application ( doesn't use the Red Gate dlls directly, but a class library, which references the dlls.
So, we have a reference to the class library (another dll), which has as dependencies the red gate dlls.

Almost all red gate dlls are being copied to the output directory of the application during the build process. Only Backup Reader dll not.
In the project settings I've not found anything to help.

Here is the solution: ... io-to.html.
After I manually editted the proect file for our application, all works fine.
(I have added lines to explicitly copy our 2 missed dlls, not the solution with automatic copy of all the dependencies).
Posts: 13
Joined: Wed Jul 30, 2008 8:28 am

Return to SQL Comparison SDK Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests