4

Tridion2011SP1とSmartTarget2010SP1を使用して新しい.NETアプリケーションをセットアップしようとしています。これまでのところ、Webサイト/サーバーの役割/構成はすべてセットアップされていますが、ブラウザーでWebサイトを実行すると、次のエラーが発生します。

Could not load file or assembly 'Tridion.ContentDelivery, Version=6.0.0.481, Culture=neutral, PublicKeyToken=ddfc895746e5ee6b' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Tridion.ContentDelivery, Version=6.0.0.481, Culture=neutral, PublicKeyToken=ddfc895746e5ee6b' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  c:\windows\system32\inetsrv\w3wp.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: User = NT AUTHORITY\NETWORK SERVICE
LOG: DisplayName = Tridion.ContentDelivery, Version=6.0.0.481, Culture=neutral, PublicKeyToken=ddfc895746e5ee6b
 (Fully-specified)
LOG: Appbase = file:///C:/Websites/Live/malvern.com.en/
LOG: Initial PrivatePath = C:\Websites\Live\malvern.com.en\bin

アセンブリの呼び出し:Tridion.SmartTarget.Interop、Version = 1.0.1.0、Culture = neutral、PublicKeyToken=ddfc895746e5ee6b。

 LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Websites\Live\malvern.com.en\web.config
LOG: Using host configuration file:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Tridion.ContentDelivery, Version=6.0.0.481, Culture=neutral, PublicKeyToken=ddfc895746e5ee6b
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/8694a1d7/ddf129e2/Tridion.ContentDelivery.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/8694a1d7/ddf129e2/Tridion.ContentDelivery/Tridion.ContentDelivery.DLL.
LOG: Attempting download of new URL file:///C:/Websites/Live/malvern.com.en/bin/Tridion.ContentDelivery.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Minor Version
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.

Webサイトのbinディレクトリを確認したところ、Tridion.ContentDelivery.dll(v6.1.0.348)の参照を使用していることがわかりました。これは、サイトの開発バージョンで使用され、スマートターゲットと連携して機能します。ただし、Fusionロギングとリフレクターを使用してTridion.SmartTarget.Interop.dllは、Tridion2011SP1ではなくTridion2011から利用可能なTridion.ContentDelivery.dllv6.0​​.0.481を見つけようとしています。

新しいアセンブリがどこにあるかをアプリに伝えるために、web.configに依存関係のバインディングを入れるかもしれませんが、なぜこれが発生するのか誰かが知っていますか?

4

1 に答える 1

5

修正済み-インストールはSDLTridion2011からSP1へのアップグレードに基づいていました-ここで説明するように、WindowsGACにアセンブリをインストールする必要がありました。

http://sdllivecontent.sdl.com/LiveContent/web/pub.xql?action=home&pub=SDL_Tridion_2011_SPONE&lang=en-US#addHistory=true&filename=MakingCustomCodeWorkWithNewCDAssemblies.xml&docid=task_A3E701D765BB44A4AE3BFDA6A537DBFA&in loadDoctask_A3E701D765BB44A4AE3BFDA6A537DBFA

于 2012-07-09T09:33:40.113 に答える