de error en la página web dev ExceptionHandling sólo cuando VPNing en mi red de la oficina

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

  •  23-08-2019
  •  | 
  •  

Pregunta

Estoy usando el bloque de manejo de excepciones Enterprise Library en una aplicación Web ASP.NET. Estaba usando esta aplicación de ayer en el trabajo (no VPN) y todo funcionaba bien. Estoy trabajando en casa hoy y tan pronto como tenga formas auth'd en la aplicación, me sale este error:

ha producido un error al crear el controlador de la sección de configuración para ExceptionHandling: No se pudo cargar el archivo o ensamblado 'Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, versión = 4.1.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35' o uno de sus dependencias. definición de manifiesto del ensamblado ubicado no coincide con la referencia de ensamblado. (Excepción de HRESULT: 0x80131040) (C: \ Projects \ ThesaurusSME \ ThesaurusSME \ web.config línea 5)

Este error golpea en c: \ EntLib41Src \ Bloques \ Common \ Src \ Configuración \ SystemConfigurationSourceImplementation.cs , en este método:

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

  SetConfigurationWatchers(sectionName, configurationSection);

  return configurationSection;
}

He comprobado todos los archivos en la carpeta bin y todos son 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"/>

Todas las otras secciones de web.config que hacen referencia a estas secciones también están mostrando 4.1.0.0.

Si ayuda, el InnerException / FusionLog dice:

  

"=== información de estado Pre-bind ===   DisplayName =   Microsoft.Practices.EnterpriseLibrary.ExceptionHandling,   Version = 4.1.0.0, Culture = neutral,   PublicKeyToken = 31bf3856ad364e35 \ n   (Especificada completamente) REGISTRO: AppBase =   file: /// C: / Proyectos / ThesaurusSME / ThesaurusSME /   LOG: privatePath inicial =   C: \ Projects \ ThesaurusSME \ ThesaurusSME \ bin   Llamando montaje: (Desconocido).   === REGISTRO: Esto se unen comienza en el contexto de carga por defecto. LOG: Uso de la aplicación   archivo de configuración:   C: \ Projects \ ThesaurusSME \ ThesaurusSME \ web.config   LOG: Usando el archivo de configuración del equipo   de   C: \ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ config \ machine.config.   LOG: referencia posterior a la política:   Microsoft.Practices.EnterpriseLibrary.ExceptionHandling,   Version = 4.1.0.0, Culture = neutral,   PublicKeyToken = 31bf3856ad364e35 \ r \ Nlog:   El intento de descarga nueva URL   file: /// C: / Users / heckacr1 / AppData / Local / temperatura / Temporal   ASP.NET   Archivos / root / ac718580 / 56b7f71 / Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.DLL.   LOG: Intentando descarga de la nueva URL   file: /// C: / Users / heckacr1 / AppData / Local / temperatura / Temporal   ASP.NET   Archivos / root / ac718580 / 56b7f71 / Microsoft.Practices.EnterpriseLibrary.ExceptionHandling / Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.DLL.   LOG: Intentando descarga de la nueva URL   file: /// C: /Projects/ThesaurusSME/ThesaurusSME/bin/Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.DLL.    WRN: Comparando el nombre de ensamblado dio lugar a la falta de coincidencia: CLAVE PÚBLICA   ERR TOKEN: No se ha podido completar la configuración de   conjunto (hr = 0x80131040). Sondeo   terminado. "

¿Por qué esto sólo ocurrirá cuando estoy fuera de la intranet por cable e VPNing en?

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top