Options

Missing assembly when running my program

NigelNigel Posts: 3
edited October 31, 2007 7:41AM in SQL Toolkit Previous Versions
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,

Comments

  • Options
    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.
    Software Developer
    Redgate Software
  • Options
    Just realised some of the DLLs were older than others.

    Just me being stupid, again!

    Thanks.
Sign In or Register to comment.