I am trying to get SharpSVN to work with a VB.NET project that I am working on in VS2010. I added SharpSVN.dll to my project links, but when I try to download the site, the following error appears:
Could not load file or assembly 'SharpSvn' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Description: An unhandled exception occurred during the execution of the current web request. View the stack trace for more information about the error and its occurrence in the code.
Exception Details: System.BadImageFormatException: Failed to load file or assembly "SharpSvn" or one of its dependencies. An attempt was made to download a program with the wrong format.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
My machine is 64-bit, and I installed Configuration Manager to build on x64, and also copied the 64-bit version of SharpSVN.dll into my project bin directory. In addition, I also tried installing the assembly on x86 and using the version of SharpSVN.dll x86 and the same error appeared (so I suspect that the error may not be directly related to the instruction set family).
In my configuration file, I tried to add the following to the assemblys attribute:
<add assembly="SharpSvn, Version=1.6016.1637.10768, Culture=neutral, PublicKeyToken=d729672594885a28"/>
Any ideas?
Kevin
source share