Red Gate forums :: View topic - Missing assembly when running my program
Return to www.red-gate.com RSS Feed Available

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

Missing assembly when running my program

Search in SQL Toolkit Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
Nigel



Joined: 31 Oct 2007
Posts: 2

PostPosted: Wed Oct 31, 2007 11:08 am    Post subject: Missing assembly when running my program Reply with quote

I have created an installer for my application which uses the toolkit to compare database schemas. I have it set up to put my .exe in the same folder as

RedGate.SQL.Shared.dll
RedGate.SQLCompare.ASTParser.dll
RedGate.SQLCompare.Engine.dll
RedGate.SQLCompare.Rewriter.dll

However when I run the .exe I get the following error:

"Could not load file or assembly 'RedGate.SQLCompare.ASTParser, Version=6.1.0.27, Culture=neutral, PublicKeyToken=7f465a1c156d4d57' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT 0x80131040)."

The DLL of the assembly it is complaining about is in the same folder as the .exe file so what am I doing wrong? What is causing this error message?

Many thanks,
Back to top
View user's profile Send private message
Michelle Taylor



Joined: 30 Oct 2006
Posts: 528
Location: Red Gate Software

PostPosted: Wed Oct 31, 2007 12:25 pm    Post subject: Reply with quote

Are all of those dlls exactly the same version that you built the .exe with? I normally get that error when I have mixed DLL versions.

Depending on how you're building the .exe, you might find that there are correct-versioned .dlls in the build directory that you can try copying over directly.
Back to top
View user's profile Send private message
Nigel



Joined: 31 Oct 2007
Posts: 2

PostPosted: Wed Oct 31, 2007 12:41 pm    Post subject: Reply with quote

Just realised some of the DLLs were older than others.

Just me being stupid, again!

Thanks.
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