Missing assembly when running my program
Nigel
Posts: 3
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,
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
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.
Redgate Software
Just me being stupid, again!
Thanks.