Missing assembly when running my program

Forum for users of SQL Toolkit 3,4,and 5

Missing assembly when running my program

Postby Nigel » Wed Oct 31, 2007 11:08 am

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,
Nigel
 
Posts: 2
Joined: Wed Oct 31, 2007 11:00 am

Postby Michelle Taylor » Wed Oct 31, 2007 12:25 pm

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.
Michelle Taylor
 
Posts: 529
Joined: Mon Oct 30, 2006 12:45 pm
Location: Red Gate Software

Postby Nigel » Wed Oct 31, 2007 12:41 pm

Just realised some of the DLLs were older than others.

Just me being stupid, again!

Thanks.
Nigel
 
Posts: 2
Joined: Wed Oct 31, 2007 11:00 am


Return to SQL Toolkit Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests