我試圖讓SharpSVN與我在VS2010中工作的VB.NET項目一起工作。我已經添加SharpSVN.dll到我的項目的引用,但是當我嘗試加載該網站出現以下錯誤:在當前web請求的執行過程中發生未處理的異常:VS2010中的SharpSVN錯誤
Could not load file or assembly 'SharpSvn' or one of its dependencies. An attempt was made to load a program with an incorrect format.
描述。請查看堆棧跟蹤以獲取有關該錯誤的更多信息以及源代碼的位置。
異常詳細信息: System.BadImageFormatException:無法加載文件或程序集'SharpSvn'或其某個依賴項。試圖加載格式不正確的程序。
源錯誤:
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.
我的機器是64位的,我已經設置了配置管理器建立到x64以及複製SharpSVN.dll的64位版本到我項目的bin目錄。此外,我也嘗試將構建版本設置爲x86,並使用x86版本的SharpSVN.dll,並且出現相同的錯誤(所以我懷疑錯誤可能與指令集系列不直接相關)。
在我的配置文件,我已經嘗試添加以下的組件屬性:
<add assembly="SharpSvn, Version=1.6016.1637.10768, Culture=neutral, PublicKeyToken=d729672594885a28"/>
任何想法?
我有類似的問題,有點。我遇到了這個錯誤,但是我的項目甚至不再使用SharpSVN(過去曾經使用過,但我們將其刪除了)。一直工作好幾個月,一夜之間突然失敗,沒有任何改變。非常令人沮喪,因爲在項目或系統中的任何地方似乎沒有任何對SharpSVN的引用。 –