erreur ExceptionHandling sur le site Web dev seulement quand VPNing dans mon réseau de bureau

StackOverflow https://stackoverflow.com/questions/888756

  •  23-08-2019
  •  | 
  •  

Question

J'utilise le bloc de gestion des exceptions Enterprise Library dans une application Web ASP.NET. Je suis juste en utilisant cette application hier au travail (non-VPN) et tout a bien fonctionné. Je travaille à la maison aujourd'hui et dès que je forme auth'd dans l'application, je reçois cette erreur:

Une erreur est survenue la création du gestionnaire de section de configuration pour ExceptionHandling: Impossible de charger le fichier ou l'assembly 'Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version = 4.1.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35' ou un de ses dépendances. La définition manifeste de l'assembly situé ne correspond pas à la référence d'assemblage. (Exception de HRESULT: 0x80131040) (C: \ Projects \ ThesaurusSME \ ThesaurusSME \ line web.config 5)

Cette erreur touche dans c: \ EntLib41Src \ Blocs \ Common Files \ Src \ Configuration \ SystemConfigurationSourceImplementation.cs , à cette méthode:

public override ConfigurationSection GetSection(string sectionName)
{
  ConfigurationSection configurationSection = ConfigurationManager.GetSection(sectionName) as ConfigurationSection;

  SetConfigurationWatchers(sectionName, configurationSection);

  return configurationSection;
}

J'ai vérifié tous les fichiers dans le dossier bin et tous sont 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"/>

Toutes les autres sections de web.config qui font référence à ces sections montrent également 4.1.0.0.

Si elle aide, le InnerException / FusionLog dit:

  

"=== état pré-bind informations ===   DisplayName =   Microsoft.Practices.EnterpriseLibrary.ExceptionHandling,   Version = 4.1.0.0, Culture = neutral,   PublicKeyToken = 31bf3856ad364e35 \ n   (Entièrement spécifié) LOG: Appbase =   file: /// C: / Projets / ThesaurusSME / ThesaurusSME /   LOG: Initial privatePath =   C: \ Projects \ ThesaurusSME \ ThesaurusSME \ bin   Assemblée appelant: (Information inconnue).   === LOG: Cette liaison commence dans le contexte de charge par défaut. LOG: Utilisation de l'application   fichier de configuration:   C: \ Projects \ ThesaurusSME \ ThesaurusSME \ web.config   LOG: Utiliser le fichier de configuration de la machine   de   C: \ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ config \ machine.config.   LOG: Référence post-politique:   Microsoft.Practices.EnterpriseLibrary.ExceptionHandling,   Version = 4.1.0.0, Culture = neutral,   PublicKeyToken = 31bf3856ad364e35 \ r \ NLog:   Tentative de téléchargement nouvelle URL   file: /// C: / Users / heckacr1 / AppData / Local / Temp / temporaire   ASP.NET   Fichiers / root / ac718580 / 56b7f71 / Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.DLL.   LOG: Tentative de téléchargement nouvelle URL   file: /// C: / Users / heckacr1 / AppData / Local / Temp / temporaire   ASP.NET   Fichiers / root / ac718580 / 56b7f71 / Microsoft.Practices.EnterpriseLibrary.ExceptionHandling / Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.DLL.   LOG: Tentative de téléchargement nouvelle URL   file: /// C: /Projects/ThesaurusSME/ThesaurusSME/bin/Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.DLL.    WRN: comparaison entre le nom de l'ensemble a donné lieu à la non-concordance: PUBLIC KEY   TOKEN ERR: Impossible de terminer l'installation de   Ensemble (hr = 0x80131040). Sondage   terminé. "

Pourquoi cela ne se produira quand je suis loin de l'intranet filaire et VPNing dans?

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top