| Author |
Message |
Nigel
Joined: 31 Oct 2007 Posts: 2
|
Posted: Wed Oct 31, 2007 11:08 am Post subject: Missing assembly when running my program |
|
|
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 |
|
 |
Michelle Taylor
Joined: 30 Oct 2006 Posts: 519 Location: Red Gate Software
|
Posted: Wed Oct 31, 2007 12:25 pm Post subject: |
|
|
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 |
|
 |
Nigel
Joined: 31 Oct 2007 Posts: 2
|
Posted: Wed Oct 31, 2007 12:41 pm Post subject: |
|
|
Just realised some of the DLLs were older than others.
Just me being stupid, again!
Thanks. |
|
| Back to top |
|
 |
|
|
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