的.NET的DLL依賴我升級了一個網站,通過這個錯誤被greated:同一文件
=== Pre-bind state information ===
LOG: User = NT AUTHORITY\NETWORK SERVICE
LOG: DisplayName = <assembly>, Version=2.0.42.64, Culture=neutral, PublicKeyToken=c445f6f924945bd1
(Fully-specified)
LOG: Appbase = file:///E:/Web/
LOG: Initial PrivatePath = E:\Web\bin
Calling assembly : <assembly>, Version=2.0.42.67, Culture=neutral, PublicKeyToken=c445f6f924945bd1.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\Web\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework\v2.0.50727\Aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Post-policy reference: <assembly>, Version=2.0.42.64, Culture=neutral, PublicKeyToken=c445f6f924945bd1
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/5ee48cb7/31fcfc81/<assembly>.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/5ee48cb7/31fcfc81/<assembly>/<assembly>.DLL.
LOG: Attempting download of new URL file:///E:/Web/bin/<assembly>.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Revision Number
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
凡<assembly>
是彙編名稱。
如果我讀這正確彙編(0.67)試圖加載本身,而是以前的(0.64),並不會失敗,因爲顯然是一個文件不能有2個版本......
什麼會導致這個問題? 它是我的配置還是程序集的編譯錯誤?
它只是找到一箇舊版本的DLL。 – 2011-04-08 21:27:27
當我添加.64時要求.67,當我添加.67時它要求.64。 – wazz3r 2011-04-08 21:33:57
嗯,可能是因爲你有一個項目使用.64修訂參考編譯,而另一個使用.67修訂編譯。其中之一將會失敗。 – 2011-04-08 21:37:01