简体   繁体   English

Telerik RadChart和Ektron CMS 7.6 dll冲突

[英]Telerik RadChart and Ektron CMS 7.6 dll conflict

I have Ektron CMS 7.6 which includes a plethora of built in features. 我有Ektron CMS 7.6,其中包括大量内置功能。 One of those features is Telerik for ASP.NET Ajax Controls. 这些功能之一是用于ASP.NET Ajax控件的Telerik。

Also I have a subscription for Telerik Controls separately. 我也分别订阅了Telerik Controls。

Problem is Telerik was forced to break some backwards compatiblity for the Radchart involving Telerik.Charting.dll and RadChart.Net2.dll. 问题是Telerik被迫破坏Radchart的一些向后兼容性,其中涉及Telerik.Charting.dll和RadChart.Net2.dll。 basically these two dlls reference the same classes and can not coexist. 基本上,这两个dll引用相同的类,并且不能共存。 My tool kit uses the newer RadChart. 我的工具包使用了较新的RadChart。

Has anybody else ran accross this? 还有其他人遇到吗? How did you fix it? 你怎么修好它的?

exact error: 确切错误:

    The type 'Telerik.Charting.ChartSeries' exists in both
    'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
     Files\internetcms\84aae664\ef33a0e2\assembly\dl3\79307436\
    00e4973e_e51cc901\
    RadChart.Net2.DLL' 

    and 

    'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
 Files\internetcms\84aae664\ef33a0e2\assembly\dl3\f477bd61\e6a2b770_714ec901\
    Telerik.Charting.DLL'

Removing the RadChart.Net2.dll from the project gets rid of the build error. 从项目中删除RadChart.Net2.dll摆脱了生成错误。

not 100% sure that the older dll is not needed for something else in Ektron. 不是100%确保Ektron中的其他东西不需要较旧的dll。

Now I have added the handler to the web.config but Ektron catches it as an unknown file and redirects to my error page. 现在,我已将处理程序添加到web.config中,但是Ektron将其作为未知文件捕获,并重定向到我的错误页面。

added to web.config 添加到web.config

   <add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler,
 Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, 
PublicKeyToken=121fae78165ba3d4" validate="false" />

Any other suggestions would be helpful 任何其他建议会有所帮助

also: yes I am aware that Telerik is up to 2009.1. 还:是的,我知道Telerik到2009.1为止。 . but I don't want to add anymore complexity to my issue until I get this working first 但在我先解决这个问题之前,我不想再增加问题的复杂性

Final Update Fixed! 最终更新已修复!

the handler above just needed to by moved to the top of the handlers section. 上面需要的处理程序移至处理程序部分的顶部。 @dsbarka from Ektron was able to suggest this one to me. 来自Ektron的@dsbarka可以向我建议这一点。 Possible that something within Ektron might have been trapping the handler for the chart image. Ektron中的某些内容可能一直在捕获图表图像的处理程序。

Working now 现在工作

It's been my experience with Ektron CMS400 that, if they include something out of the box, you're stuck with that version until they feel like upgrading...otherwise you're going to break more of CMS400 than the new functionality is worth. 根据我对Ektron CMS400的经验,如果其中包含一些开箱即用的东西,则您会一直使用该版本,直到他们感觉要升级为止……否则,您将破坏CMS400的更多功能,而不是新功能所值得。

Unfortunately, I'd say that you'd be better off re-engineering your RadChart toolkit to use the version of the Telerik tools that Ektron includes in CMS400. 不幸的是,我想您最好重新设计RadChart工具包,以使用Ektron包括在CMS400中的Telerik工具的版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM