我使用的企业库异常处理块在ASP.NET web应用程序。我只是用这个程序在昨天的工作(非VPN)和一切工作正常。我今天在家工作,一旦我有auth'd到应用程序的形式,我得到这个错误:

出错创建exceptionHandling配置节处理程序:无法加载文件或程序集Microsoft.Practices.EnterpriseLibrary.ExceptionHandling,版本= 4.1.0.0,文化=中性公钥= 31bf3856ad364e35'或一种其依赖。在位于集清单定义不匹配的程序集引用。 (从HRESULT异常:0x80131040)(C:\项目\ ThesaurusSME \ ThesaurusSME \ web.config中第5行)

此错误在打 C:\ EntLib41Src \块\共同\ SRC \配置\ SystemConfigurationSourceImplementation.cs ,在该方法中:

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

  SetConfigurationWatchers(sectionName, configurationSection);

  return configurationSection;
}

我已经检查在bin文件夹中的所有文件和所有的都是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"/>

所有引用这些部分也示出4.1.0.0。web.config中的其它部分的

如果有帮助,设置InnerException / FusionLog表示:

  

“===预绑定状态信息===   显示名称=   Microsoft.Practices.EnterpriseLibrary.ExceptionHandling,   版本= 4.1.0.0,文化=中立,   公钥= 31bf3856ad364e35 \ n   (完全指定的)LOG:应用平台=   文件:/// C:/项目/ ThesaurusSME / ThesaurusSME /   LOG:初始PrivatePath =   C:\项目\ ThesaurusSME \ ThesaurusSME \ BIN   调用汇编:(未知)。   ===日志:此绑定默认加载上下文开始。日志:正在使用应用程序   配置文件:   C:\项目\ ThesaurusSME \ ThesaurusSME \的web.config   日志:正在使用的机器配置文件   从   C:\ WINDOWS \ Microsoft.NET \框架\ V2.0.50727 \ CONFIG \ machine.config中。   日志:后政策参考:   Microsoft.Practices.EnterpriseLibrary.ExceptionHandling,   版本= 4.1.0.0,文化=中立,   公钥= 31bf3856ad364e35 \ r \ n日志:   新的URL尝试下载   文件:/// C:/用户/ heckacr1 /应用程序数据/本地/温度/临时   ASP.NET   文件/根/ ac718580 / 56b7f71 / Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.DLL。   LOG:新的URL尝试下载   文件:/// C:/用户/ heckacr1 /应用程序数据/本地/温度/临时   ASP.NET   文件/根/ ac718580 / 56b7f71 / Microsoft.Practices.EnterpriseLibrary.ExceptionHandling / Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.DLL。   LOG:新的URL尝试下载   文件:/// C:/Projects/ThesaurusSME/ThesaurusSME/bin/Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.DLL。   的警告:比较组件名称时发生不匹配:PUBLIC KEY   TOKEN错误:未能完成安装   组件(HR = 0x80131040)。探测   终止。

为什么当我从有线局域网和VPNing离开这只是发生?

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top