ExceptionHandling erro no dev website somente quando VPNing em minha rede do escritório

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

  •  23-08-2019
  •  | 
  •  

Pergunta

Eu estou usando o bloco de tratamento de exceção Enterprise Library em um aplicativo web ASP.NET. Eu estava apenas usando este aplicativo ontem no trabalho (não-VPN) e tudo funcionou bem. Eu estou trabalhando em casa hoje e assim que têm formas auth'd no aplicativo, eu recebo este erro:

Ocorreu um erro ao criar o manipulador de seção de configuração para ExceptionHandling: Não foi possível carregar arquivo ou assembly 'Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, versão = 4.1.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35' ou um dos seus dependências. O localizada definição do manifesto do assembly não corresponde à referência do assembly. (Exceção de HRESULT: 0x80131040) (C: \ Projects \ ThesaurusSME \ ThesaurusSME \ web.config linha 5)

Esta sucessos de erro no c: \ EntLib41Src \ Blocks \ Common \ Src \ Configuration \ SystemConfigurationSourceImplementation.cs , neste método:

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

  SetConfigurationWatchers(sectionName, configurationSection);

  return configurationSection;
}

Fui verificar todos os arquivos na pasta bin e todos são 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 as outras seções do web.config que a referência dessas seções também estão mostrando 4.1.0.0.

Se isso ajuda, o InnerException / FusionLog diz:

"informações de estado === Pré-bind === DisplayName = Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version = 4.1.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35 \ n (Totalmente especificado) REGISTRO: AppBase = file: /// C: / Projetos / ThesaurusSME / ThesaurusSME / REGISTRO: Inicial = privatePath C: \ Projects \ ThesaurusSME \ ThesaurusSME \ bin Chamando montagem: (Desconhecido). === LOG: Esta ligação começa no contexto de carga padrão. LOG: Usando aplicação arquivo de configuração: C: \ Projects \ ThesaurusSME \ ThesaurusSME \ web.config LOG: Usando arquivo de configuração da máquina de C: \ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ config \ machine.config. LOG: Referência de Pós-política: Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version = 4.1.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35 \ r \ NLog: A tentativa de download do novo URL file: /// C: / Users / heckacr1 / AppData / Local / Temp / Temporary ASP.NET Files / root / ac718580 / 56b7f71 / Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.DLL. LOG: tentativa de download do novo URL file: /// C: / Users / heckacr1 / AppData / Local / Temp / Temporary ASP.NET Files / root / ac718580 / 56b7f71 / Microsoft.Practices.EnterpriseLibrary.ExceptionHandling / Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.DLL. LOG: tentativa de download do novo URL file: /// C: /Projects/ThesaurusSME/ThesaurusSME/bin/Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.DLL. WRN: Comparando o nome do assembly resultou na incompatibilidade: PUBLIC KEY TOKEN ERR: Falha ao configuração completa de montagem (h = 0x80131040). sondagem encerrado. "

Por que isso só acontece quando estou longe da intranet fio e VPNing em?

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top