This is a migrated thread and some comments may be shown as answers.

Upgrade from 4.1.0 to 4.5.6

1 Answer 80 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Bruno Sousa
Top achievements
Rank 1
Bruno Sousa asked on 27 Jan 2010, 04:49 PM
Hi,
I'm upgrading the RadEditorMOSS solution on my environment from version 4.1.0 to 4.5.6.
There is a problem on the existing instances of the webpart "Telerik RadEditor for MOSS" v.4.1.0 after the upgrade.
They show the error:
Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.

Indeed, by adding the files version 4.1.0 to the GAC.
    RadEditor.Net2.dll
    RadEditorSharePoint.dll
    RadSpell.Net2.dll
Plus safe control entries on web.config, it works again.
Is there any way to get the 'old' webparts working correctly with version 4.5.6?

Thanks for the help.

1 Answer, 1 is accepted

Sort by
0
Accepted
Stanimir
Telerik team
answered on 28 Jan 2010, 07:06 AM
Hello Bruno Sousa,
1. (Web Parts) To enable the RadEditor Web Parts, which were created with the previous version, open the web.config file of your SharePoint site and add the following line right above the </SafeControls> tag:
<SafeControl Assembly="RadEditorSharePoint, Version=<old version>, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint" TypeName="*" Safe="True" />

In this case <old version> is 4.1.0.0, so the <SafeControl> tag should look like this:
<SafeControl Assembly="RadEditorSharePoint, Version=4.1.0.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint" TypeName="*" Safe="True" />

2. (WCM Field) To upgrade the old RadEditor publishing fields, paste the following <SafeControl> element in the web.config file as well:
<SafeControl Assembly="RadEditorSharePoint, Version=<old version>, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint.FieldEditor" TypeName="*" Safe="True" />

In this case <old version> is 4.1.0.0, so the <SafeControl> tag should look like this:
<SafeControl Assembly="RadEditorSharePoint, Version=4.1.0.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint.FieldEditor" TypeName="*" Safe="True" />

Alternatively, you can also upgrade the RadEditor fields through SharePoint Designer. Open each page, where you have added the field and modify the <%@ Register... line at the top:
<%@ Register TagPrefix="radE" Namespace="Telerik.SharePoint.FieldEditor" Assembly="RadEditorSharePoint, Version=4.1.0.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" %>

Change the old version (4.1.0.0) to the new one (4.5.6.0).
Note that adding the <SafeControl> element above is enough to make the old fields work with the new version. The second approach (changing the <%@ Register ... lines with SharePoint Designer) does the same thing, so it is up to you to decide which one to use.

3.  Paste the following <dependentAssembly> element in the <assemblyBinding> tag in the web.config file:
<runtime>
...
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="RadEditorSharePoint" publicKeyToken="1f131a624888eeed" culture="neutral" />
        <bindingRedirect oldVersion="1.0.0.0-<old version>" newVersion="<new version>" />
      </dependentAssembly>
...
    </assemblyBinding>
...
 </runtime>

Again, <old version> here represents the old product version (4.1.0.0), while <new version> should be replaced with the current version (4.5.6.0 in this example):
<dependentAssembly>
  <assemblyIdentity name="RadEditorSharePoint" publicKeyToken="1f131a624888eeed" culture="neutral" />
  <bindingRedirect oldVersion="1.0.0.0-4.1.0.0" newVersion="4.5.6.0" />
</dependentAssembly>
 

4.  Restart the IIS web server or recycle the MOSS web application so the new web.config settings are applied.

Sincerely yours,
Stanimir
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
WebParts for SharePoint
Asked by
Bruno Sousa
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Share this question
or