ExceptionHandling error on developer website only when connecting VPN to my office network

I am using the Enterprise Library exception handling block in an ASP.NET web application. I just used this app yesterday at work (not a VPN) and everything worked fine. Today I work from home and as soon as I have forms in my application I get this error:

An error occurred while creating a configuration section handler for Handling exception: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version = 4.1.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35' or one of its dependencies. The located assembly manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) (C: \ Projects \ ThesaurusSME \ ThesaurusSME \ web.config line 5)

This error hits c: \ EntLib41Src \ Blocks \ Common \ Src \ Configuration \ SystemConfigurationSourceImplementation.cs with this method:

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

  SetConfigurationWatchers(sectionName, configurationSection);

  return configurationSection;
}

      

I checked all files in bin folder and they are all 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"/>

      

All other web.config sections that reference those sections also show 4.1.0.0.

If that helps, InnerException / FusionLog says:

"=== Pre-Bind Status Information === DisplayName = Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version = 4.1.0.0, Culture = Neutral, PublicKeyToken = 31bf3856ad364e35 \ n (Fully specified) LOG: Appbase = File: /// C: / Projects / ThesaurusSME / ThesaurusSME / LOG: Initial PrivatePath = C: \ Projects \ ThesaurusSME \ ThesaurusSME \ Bin Calling assembly: (Unknown) === LOG: This binding starts from the default load context LOG: Application Usage File config: C: \ Projects \ ThesaurusSME \ ThesaurusSME \ web.config LOG: using machine config file from C: \ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ Config \ machine.config. LOG: Post-policy link: Microsoft.Practices .EnterpriseLibrary.ExceptionHandling, Version = 4.1.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35 \ r \ Nlog:Trying to load new url File: /// C: / Users / heckacr1 / AppData / Local / Temp / Temporary ASP.NET Files / root / ac718580 / 56b7f71 / Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.DLL. LOG: Trying to load a new 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: Attempting to load new url File: /// C: /Projects/ThesaurusSME/ThesaurusSME/bin/Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.DLL./ Users / heckacr1 / AppData / Local / Temp / Temporary ASP.NET Files / root / ac718580 / 56b7f71 / Microsoft.Practices.EnterpriseLibrary.ExceptionHandling / Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.DLL. LOG: Attempting to load a new URL File: /// C: /Projects/ThesaurusSME/ThesaurusSME/bin/Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.DLL./ Users / heckacr1 / AppData / Local / Temp / Temporary ASP.NET Files / root / ac718580 / 56b7f71 / Microsoft.Practices.EnterpriseLibrary.ExceptionHandling / Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.DLL. LOG: Attempting to load new url File: /// C: /Projects/ThesaurusSME/ThesaurusSME/bin/Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.DLL.WRN: Comparison of assembly name resulted in mismatch: PUBLIC KEY TOKEN ERR: Failed to complete customization assembly (hr = 0x80131040). probing stops. "

Why does this only happen when I am removed from the wired intranet and VPNing?

0


a source to share


1 answer


0


a source







All Articles