Ho un sito web che getta sporadicamente il seguente errore:DLL errori delle versioni
Server Error in '/' Application.
Could not load file or assembly 'ICSharpCode.SharpZipLib, Version=0.85.3.365, Culture=neutral, PublicKeyToken=1b03e6acf1164f73' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Ora so che io ho una dipendenza da questa DLL, ma io ho la versione 0.85.5 sul mio sistema . Ho sistematicamente cancellato ogni versione precedente della DLL dal server, ricompilato tutto e ripubblicato. Ma non importa quello che faccio, sembra che dopo ogni ripubblicazione, la prima o due volte che qualcuno visita il sito, ottengano questo errore. Quindi, dopo aver aggiornato una o due volte, l'errore scompare e il sito funziona normalmente.
Ciò che lo rende ancora più strano è se guardo la riga di codice in cui viene generata l'errore:
URLRewriter.ProcessRewritingResult(status, excludedEnum, siteName, viewMode, relativePath);
URLRewriter
è una classe da un pacchetto partito 3 ° (Kentico CMS - CMS.URLRewritingEngine.dll) . Ho eseguito Dependency Walker su quella DLL e non ho trovato alcuna dipendenza su ICSharpCode.SharpZipLib.
Qualche idea su come risolvere questo problema?
EDIT: A @ di JeremyThompson suggerimento, mi sono imbattuto Process Monitor per rilevare l'errore. Ecco uno screen dump, con parti rilevanti evidenziate (e un nome di cartella oscurato per motivi di privacy). È possibile visualizzare lo schermo intero cliccando col tasto destro su di esso, ecc ...
EDIT: Ecco una traccia carico dall'errore. questo aiuta?
=== Pre-bind state information ===
LOG: User = MY-SERVER-12\Administrator
LOG: DisplayName = ICSharpCode.SharpZipLib, Version=0.85.3.365, Culture=neutral, PublicKeyToken=1b03e6acf1164f73 (Fully-specified)
LOG: Appbase = file:///C:/inetpub/wwwroot/MySite/
LOG: Initial PrivatePath = C:\inetpub\wwwroot\MySite\bin
Calling assembly : CMS.WebAnalytics, Version=6.0.4377.2467, Culture=neutral, PublicKeyToken=834b12a258f213f9.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\inetpub\wwwroot\MySite\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: ICSharpCode.SharpZipLib, Version=0.85.3.365, Culture=neutral, PublicKeyToken=1b03e6acf1164f73
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/9760eb69/275bb3db/ICSharpCode.SharpZipLib.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/9760eb69/275bb3db/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.DLL.
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/MySite/bin/ICSharpCode.SharpZipLib.DLL.
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/MySite/bin/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/9760eb69/275bb3db/ICSharpCode.SharpZipLib.EXE.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/9760eb69/275bb3db/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.EXE.
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/MySite/bin/ICSharpCode.SharpZipLib.EXE.
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/MySite/bin/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.EXE.
Hi Shual, questo solo per il ping del team di Kentico, ho affrontato con loro in passato e sono superiori tizi. Sono sicuro che darebbero un'occhiata a questo ora è in un forum pubblico. Questo ragazzo: @PetrPalas (http://stackoverflow.com/users/1430236/petr-palas), è davvero gentile. –