0

ASP.NETWebアプリケーションでエンタープライズライブラリの例外処理ブロックを使用しています。私は昨日仕事でこのアプリを使用していました(非VPN)、そしてすべてがうまくいきました。私は今日家で働いています、そして私がアプリに認証されたフォームを持っているとすぐに、私はこのエラーを受け取ります:

exceptionHandlingの構成セクションハンドラーの作成中にエラーが発生しました:ファイルまたはアセンブリ'Microsoft.Practices.EnterpriseLibrary.ExceptionHandling、Version = 4.1.0.0、Culture = neutral、PublicKeyToken=31bf3856ad364e35'またはその依存関係の1つを読み込めませんでした。見つかったアセンブリのマニフェスト定義がアセンブリ参照と一致しません。(HRESULTからの例外:0x80131040)(C:\ Projects \ ThesaurusSME \ ThesaurusSME \ web.config行5)

このエラーは、c:\ EntLib41Src \ Blocks \ Common \ Src \ Configuration \ 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"/>

これらのセクションを参照するweb.configの他のすべてのセクションにも、4.1.0.0が表示されています。

それが役立つ場合、InnerException/FusionLogは次のように述べています。

/Users/heckacr1/AppData/Local/Temp/Temporary ASP.NET Files / root / ac718580 / 56b7f71/Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.DLL。ログ:新しいURLファイルのダウンロードを試みています:/// C:/Users/heckacr1/AppData/Local/Temp/Temporary ASP.NET Files / root / ac718580 / 56b7f71 / Microsoft.Practices.EnterpriseLibrary.ExceptionHandling / Microsoft.Practices.EnterpriseLibrary .ExceptionHandling.DLL。ログ:新しいURLファイルのダウンロードを試みています:/// C:/Projects/ThesaurusSME/ThesaurusSME/bin/Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.DLL。EnterpriseLibrary.ExceptionHandling/Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.DLL。ログ:新しいURLファイルのダウンロードを試みています:/// C:/Projects/ThesaurusSME/ThesaurusSME/bin/Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.DLL。EnterpriseLibrary.ExceptionHandling/Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.DLL。ログ:新しいURLファイルのダウンロードを試みています:/// C:/Projects/ThesaurusSME/ThesaurusSME/bin/Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.DLL。 WRN:アセンブリ名を比較すると、不一致が発生しました:公開鍵トークンエラー:アセンブリのセットアップを完了できませんでした(hr = 0x80131040)。プローブが終了しました。「」

有線イントラネットから離れてVPNを使用している場合にのみ、これが発生するのはなぜですか?

4

1 に答える 1

0

あなたはおそらくまだこの問題を抱えていませんが、私はここで解決策を見つけました:http: //chiragrdarji.wordpress.com/2009/01/05/an-error-occurred-creating-the-configuration-section-microsoftpracticesenterpriselibrarythe-located -assemblys-manifest-definition-does-not-match-the-assembly-reference /

于 2009-12-30T14:56:46.500 に答える