Exceptionhandling Fehler nur auf dev Website, wenn sie in meinem Büro Netzwerk VPNing
-
23-08-2019 - |
Frage
Ich bin mit der Enterprise Library Exception Handling Block in einer ASP.NET Web-Anwendung. Ich war mit nur diese app gestern bei der Arbeit (Nicht-VPN) und alles hat gut funktioniert. Ich bin zu Hause arbeiten heute und sobald ich Formen haben geauthet in die App, bekomme ich diesen Fehler:
ist ein Fehler aufgetreten den Konfigurationsabschnitt Handler für Exceptionhandling zu erstellen: Die Datei oder Assembly laden 'Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version = 4.1.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35' oder einem seiner Abhängigkeiten. Die manifest Definition befindet Assembly nicht die Montagereferenz entsprechen. (Ausnahme von HRESULT: 0x80131040) (C: \ Projects \ ThesaurusSME \ ThesaurusSME \ web.config Zeile 5)
Dieser Fehler trifft in c: \ EntLib41Src \ Blocks \ Common \ Src \ Configuration \ SystemConfigurationSourceImplementation.cs , bei dieser Methode:
public override ConfigurationSection GetSection(string sectionName)
{
ConfigurationSection configurationSection = ConfigurationManager.GetSection(sectionName) as ConfigurationSection;
SetConfigurationWatchers(sectionName, configurationSection);
return configurationSection;
}
Ich habe alle Dateien im Ordner ist überprüft und alle sind 4.1.0.0.
<configSections>
<section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<section name="exceptionHandling" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.ExceptionHandlingSettings, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Alle anderen Abschnitte von web.config, die diese Abschnitte verweisen, werden auch 4.1.0.0 zeigt.
Wenn es hilft, die Innerexception / FusionLog sagt:
"=== Pre-bind Zustandsinformation === Displayname = Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version = 4.1.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35 \ n (Voll angegeben) LOG: AppBase = file: /// C: / Projekte / ThesaurusSME / ThesaurusSME / LOG: Initial privatePath = C: \ Projects \ ThesaurusSME \ ThesaurusSME \ bin Aufruf Montag: (Unbekannt). === LOG: Diese binden beginnt in Standardladekontext. LOG: Mit Anwendung Konfigurationsdatei: C: \ Projects \ ThesaurusSME \ ThesaurusSME \ web.config LOG: Mit der Maschinenkonfigurationsdatei von C: \ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ config \ machine.config. LOG: Post-Politik Referenz: Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version = 4.1.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35 \ r \ Nlog: Der Versuch, Download neuer URL file: /// C: / Users / heckacr1 / AppData / Local / Temp / Temporary ASP.NET Dateien / root / ac718580 / 56b7f71 / Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.DLL. LOG: Der Versuch, Download neuer URL file: /// C: / Users / heckacr1 / AppData / Local / Temp / Temporary ASP.NET Dateien / root / ac718580 / 56b7f71 / Microsoft.Practices.EnterpriseLibrary.ExceptionHandling / Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.DLL. LOG: Der Versuch, Download neuer URL file: /// C: /Projects/ThesaurusSME/ThesaurusSME/bin/Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.DLL. WRN: Vergleicht man die Assemblierung-Name in der Mismatch geführt: PUBLIC KEY TOKEN ERR: Fehler abzuschließen Einrichtung Baugruppe (hr = 0x80131040). Sondierung beendet. "
Warum sollte dies nur geschehen, wenn ich von der verdrahteten Intranet und VPNing weg bin in?
Lösung
Sie wahrscheinlich noch nicht sind diese Probleme haben, aber ich fand die Lösung hier: http://chiragrdarji.wordpress.com/2009/01/05 / AN-Fehler aufgetreten-schöpf the configuration-Abschnitt-microsoftpracticesenterpriselibrarythe-located-assemblys-Manifest-Definition-does-not-match-the-assembly-Referenz /