首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >引用不同程序集的内容交付上的智能目标互操作

引用不同程序集的内容交付上的智能目标互操作
EN

Stack Overflow用户
提问于 2012-07-09 17:01:33
回答 1查看 318关注 0票数 4

我正在尝试使用Tridion2011 SP1和Smart Target 2010 SP1来设置一个新的.NET应用程序。到目前为止,我已经完成了网站/服务器角色/配置的所有设置,但是当在浏览器中运行网站时,我得到以下错误

代码语言:javascript
复制
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。

代码语言:javascript
复制
 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.

我检查了网站的bin目录,发现它使用的是Tridion.ContentDelivery.dll (v6.1.0.348)的引用--它在网站的开发版本上使用,并与smart target一起使用。但是,使用融合日志记录和反射器,Tridion.SmartTarget.Interop.dll正在尝试查找Tridion.ContentDelivery.dll v6.0.0.481 -该版本可从Tridion2011而不是Tridion2011 SP1获得

我可能会在web.config中添加依赖绑定来告诉应用程序新的程序集在哪里,但是有人知道为什么会发生这种情况吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-07-09 17:33:40

已修复-安装基于将SDL Tridion 2011升级到SP1 -需要在windows GAC中安装程序集,如下所述:

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&inner_id=&tid=&query=&scope=&resource=&eventType=lcContent.loadDoctask_A3E701D765BB44A4AE3BFDA6A537DBFA

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11391927

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档