Red Gate forums :: View topic - SOLVED Can not load Backup Reader dll!
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Comparison SDK Previous Versions
SQL Comparison SDK Previous Versions forum

SOLVED Can not load Backup Reader dll!

Search in SQL Comparison SDK Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
ilya



Joined: 30 Jul 2008
Posts: 13

PostPosted: Wed Dec 22, 2010 11:46 am    Post subject: SOLVED Can not load Backup Reader dll! Reply with quote

We wrapp the data compare functionality we need in a dll, which will be used our asp.net application.
The dll using SDK is compiled for x86, with recommended options for the pree and post-build events (http://www.red-gate.com/supportcenter/Content?c=knowledgebase\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 asp.net application for x86.

Have you any ideas, how to get off of the exception?


Last edited by ilya on Thu Dec 23, 2010 12:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
ilya



Joined: 30 Jul 2008
Posts: 13

PostPosted: Thu Dec 23, 2010 12:17 pm    Post subject: Reply with quote

SOLVED.

Our application (asp.net) 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 asp.net 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:
http://blog.alexyakunin.com/2009/09/making-msbuild-visual-studio-to.html.
After I manually editted the proect file for our asp.net 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).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group