Upgrading old web parts from SharePoint Portal Server 2003 for MOSS 2007
Article Info
Rating: Not rated
|
Article relates to
|
RadEditor for MOSS
|
|
Created by
|
lini, Telerik
|
|
Last modified
|
August 1st, 2007
|
|
Last modified by
|
lini, Telerik
|
The RadEditor WebPart for Sharepoint Portal Server 2003 has a different TypeName from the MOSS RadEditor WebPart. This means that if you migrate old 2003 RadEditor WebParts to MOSS 2007, the WebParts will fail to load. Here is a list of steps you need to make in order to fix this problem:
Note: We strongly recommend that you make backups before overwriting or deleting files.
- Install the latest available RadEditor for MOSS solution in your SharePoint 2007 farm.
- Install and deploy the RadEditor for SPS 2003 Web Part Package (let's assume that you have version 3.03) in your SharePoint 2007 farm. This can be done from the command line with the following command:
stsadm -o addwppack -filename RadWebParts.cab -globalinstall
- Open the Web.config file in your MOSS site (for example C:\Inetpub\wwwroot\wss\VirtualDirectories\80\Web.config). Make the following changes:
- remove the old editor and spell <safeControl> elements. Keep the RadWebParts <safeControl> element! For the 3.03 SPS web part, the lines to be removed are:
<SafeControl Assembly="RadEditor, Version=7.0.2.0, Culture=neutral, PublicKeyToken=852c9eb6525c1b53" Namespace="Telerik.WebControls" TypeName="*" Safe="True" />
<SafeControl Assembly="RadEditor, Version=7.0.2.0, Culture=neutral, PublicKeyToken=852c9eb6525c1b53" Namespace="Telerik.RadEditorUtils" TypeName="*" Safe="True" />
<SafeControl Assembly="RadEditor, Version=7.0.2.0, Culture=neutral, PublicKeyToken=852c9eb6525c1b53" Namespace="Telerik.RadEditorConverters" TypeName="*" Safe="True" />
<SafeControl Assembly="RadEditor, Version=7.0.2.0, Culture=neutral, PublicKeyToken=852c9eb6525c1b53" Namespace="Telerik.RadEditorDesigners" TypeName="*" Safe="True" />
<SafeControl Assembly="RadSpell, Version=3.0.2.0, Culture=neutral, PublicKeyToken=b5dad7bf2bf594c2" Namespace="Telerik.WebControls" TypeName="*" Safe="True" />
- Add the following <safeControl> element to the list. You should have two <safeControl> elements for RadWebParts. One for version 4.0.0.0 and one from the old version (3.0.3.0 in this case):
<SafeControl Assembly="RadWebParts, Version=4.0.0.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.WebParts" TypeName="*" Safe="True" />
- Add the following statements to the <assemblyBinding> element in the Web.config file. The first one is used to redirect all previous versions of the RadEditor web part for SharePoint 2003. The second is used for the new MOSS RadEditor:
<dependentAssembly>
<assemblyIdentity name="RadWebParts" publicKeyToken="1f131a624888eeed" culture="neutral" />
<bindingRedirect oldVersion="1.0.0.0-3.9.9.0" newVersion="4.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="RadEditorSharePoint" publicKeyToken="1f131a624888eeed" culture="neutral" />
<bindingRedirect oldVersion="1.0.0.0-4.1.9.0" newVersion="4.2.0.0" />
</dependentAssembly>
- Obtain the RadWebParts.dll file from the Article files at the bottom of this page
- Open the MOSS web server's GAC (C:\Windows\assembly\) and make the following changes:
- Delete the RadEditor, RadSpell, and RadWebParts assemblies from the list. After that, you should see the RadEditor.Net2, RadSpell.Net2, and RadEditorSharePoint assemblies in the list
- Add the RadWebParts assembly you obtained in the previous step to the GAC.
- Reset the IIS server to enable the changes you made in the GAC.
Comments
There are no comments yet.
If you'd like to comment on this KB
article, please, send us a
Support Ticket.
Thank you!
Please
Sign In
to rate this article.