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

Telerik Controls in Sharepoint 2010 migrated from MOSS 2007

5 Answers 132 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
thomson
Top achievements
Rank 1
thomson asked on 08 Nov 2012, 11:58 AM
We were having the MOSS 2007 site with telerik controls. This was using the version Assembly="Telerik.Web.UI, Version=2008.2.826.20 with System.Web.Extensions, Version=1.0.61025.0.

We migrated the site to Sharepoint 2010 SP1. All the controls loaded fine initially. But the menu's are having a problem we get the Script Error 

Webpage error details


User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Timestamp: Thu, 8 Nov 2012 08:31:56 UTC


Message: 'document.body' is null or not an object
Line: 34
Char: 1
Code: 0
URI: http://www.site/ScriptResource.axd?d=22xm3UpNiA3PVP5Fa22svSzau2bD7INcsbLJvG-DL25_x6mPg0NaOWNuqpigIPkFs5CsNME3wl1NZEyl04lZcMIX56pDA99iX5cTOpvjjcIMyGjcAFnRRtVsqgkNVVM1pJqBD449C119swXnsFpuRg5VH7RyyruJ6mOItztJE4-rSch50&t=ffffffffd7b48b01


Message: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: baseType
Line: 1718
Char: 71
Code: 0
URI: http://www.site/ScriptResource.axd?d=AthIancKOQtKRflKS6vyzFAb1YaBR3aO-Ny77_wrdxKP7j3EVVvz3zX79WQeGlgLDk64tsQyQoI5-SzwF2-VhpiOdgiKx7q3rwMuxIr2PiLCDWan4grQfoZD-ylaO7pwldv2JPWG8jFSsMpxuHWNjANFnv3G5jkigyntw6JG79KgupF30&t=ffffffffb868b5f4




Message: Sys.ArgumentException: Value is not a class.
Parameter name: baseType
Line: 1719
Char: 40
Code: 0
URI: http://www.site/ScriptResource.axd?d=AthIancKOQtKRflKS6vyzFAb1YaBR3aO-Ny77_wrdxKP7j3EVVvz3zX79WQeGlgLDk64tsQyQoI5-SzwF2-VhpiOdgiKx7q3rwMuxIr2PiLCDWan4grQfoZD-ylaO7pwldv2JPWG8jFSsMpxuHWNjANFnv3G5jkigyntw6JG79KgupF30&t=ffffffffb868b5f4

Message: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: baseType
Line: 1718
Char: 71
Code: 0
URI: http://www.site/ScriptResource.axd?d=AthIancKOQtKRflKS6vyzFAb1YaBR3aO-Ny77_wrdxKP7j3EVVvz3zX79WQeGlgLDk64tsQyQoI5-SzwF2-VhpiOdgiKx7q3rwMuxIr2PiLCDWan4grQfoZD-ylaO7pwldv2JPWG8jFSsMpxuHWNjANFnv3G5jkigyntw6JG79KgupF30&t=ffffffffb868b5f4




Message: Sys.ArgumentException: Value is not a class.
Parameter name: baseType
Line: 1719
Char: 40
Code: 0
URI: http://www.site/ScriptResource.axd?d=AthIancKOQtKRflKS6vyzFAb1YaBR3aO-Ny77_wrdxKP7j3EVVvz3zX79WQeGlgLDk64tsQyQoI5-SzwF2-VhpiOdgiKx7q3rwMuxIr2PiLCDWan4grQfoZD-ylaO7pwldv2JPWG8jFSsMpxuHWNjANFnv3G5jkigyntw6JG79KgupF30&t=ffffffffb868b5f4

Message: Sys.ArgumentException: Value is not a class.
Parameter name: baseType
Line: 1719
Char: 40
Code: 0
URI: http://www.site/ScriptResource.axd?d=AthIancKOQtKRflKS6vyzFAb1YaBR3aO-Ny77_wrdxKP7j3EVVvz3zX79WQeGlgLDk64tsQyQoI5-SzwF2-VhpiOdgiKx7q3rwMuxIr2PiLCDWan4grQfoZD-ylaO7pwldv2JPWG8jFSsMpxuHWNjANFnv3G5jkigyntw6JG79KgupF30&t=ffffffffb868b5f4




Message: Sys.ArgumentException:  does not derive from Sys.Component.
Parameter name: type
Line: 2707
Char: 9
Code: 0
URI: http://www.site/ScriptResource.axd?d=AthIancKOQtKRflKS6vyzFAb1YaBR3aO-Ny77_wrdxKP7j3EVVvz3zX79WQeGlgLDk64tsQyQoI5-SzwF2-VhpiOdgiKx7q3rwMuxIr2PiLCDWan4grQfoZD-ylaO7pwldv2JPWG8jFSsMpxuHWNjANFnv3G5jkigyntw6JG79KgupF30&t=ffffffffb868b5f4

In one of the thread i came to know embedded scripts failed to load. To fix this to upgrade to October 2011 Cummulative Update. We did try this. But the error persists.

Can somebody let me know how to fix this?





5 Answers, 1 is accepted

Sort by
0
Kalina
Top achievements
Rank 1
answered on 13 Nov 2012, 09:01 AM
What Telerik controls do you use?
0
thomson
Top achievements
Rank 1
answered on 14 Nov 2012, 03:41 AM
RadMenu, RadWindow,RadTabStrip.


I have done one more thing for the test.

I created a brandnew sharepoint 2010 site.
i registered the control in the master page (dayandnight.master)

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" %>       

Added the RadScriptManager in the master page

 <telerik:RadScriptManager Runat=server id="ScriptManager1" EnableScriptCombine="true" AsyncPostBackTimeout ="36000"/>

Added the safe control entry 
  <SafeControl Assembly="Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.Design" TypeName="*" Safe="True" />
      <SafeControl Assembly="Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TypeName="*" Safe="True" />

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

Now i pasted the menu controls as shown in this example in the master page  http://demos.telerik.com/aspnet-ajax/menu/examples/overview/defaultcs.aspx#qsf-demo-source 

i have copied only the menu control

i have removed the two properties EnableRoundedCorners="true" EnableShadows="true"

The Menu renders fine with the error message . That means on hover nothing happens
Now also i am getting this error 
Webpage error details


User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Timestamp: Wed, 14 Nov 2012 08:58:45 UTC

Message: 'document.body' is null or not an object
Line: 34
Char: 1
Code: 0
URI: http://www.devtest.com/ScriptResource.axd?d=Rs9XUr517yDGPQYNt48ZE65GJNSDqjTDkp7ItbuOwBA3hpxw58J37-s8MQvKQ0GaU_RSOwLmHktrRHG0Eo6DJqBuSGfdANdMQqgKdh_-mdxZDHj3M6o1PxDGKbVOK1f6azXSe64xunfV7FZo9XnnWwZ-9SWHkW5HGmlaS54cJgy-fzex0&t=ffffffffd7b48b01

Message: Object doesn't support this property or method
Line: 5
Char: 32821
Code: 0
URI: http://www.devtest.com/ScriptResource.axd?d=uyackf6zOjRjG7iAhHt1CAHBbDcEDRgo1RiSZ22QVzLHwPf4nspGGQ29D-AGJDU8Z2p9wGptbA33nvB9kdMua9YXlC8uykRrIybiPZrse9sWDdbOnevcSnRUyb9Z42HK3fAliUGQ-SQAmEmaabkQ8gD9-zU1&t=ffffffffb868b5f4

Please note that this is a brand new 2010 publishing site with Sharepoint Server 2010
Oct 2011 CU 14.0.6112.5000

i have tried the suggestion as below but the error remains the same
Webpage error details


User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Timestamp: Tue, 20 Nov 2012 08:00:04 UTC




Message: 'document.body' is null or not an object
Line: 34
Char: 1
Code: 0
URI: http://www.devtest.com/ScriptResource.axd?d=Rs9XUr517yDGPQYNt48ZE65GJNSDqjTDkp7ItbuOwBA3hpxw58J37-s8MQvKQ0GaU_RSOwLmHktrRHG0Eo6DJqBuSGfdANdMQqgKdh_-mdxZDHj3M6o1PxDGKbVOK1f6azXSe64xunfV7FZo9XnnWwZ-9SWHkW5HGmlaS54cJgy-fzex0&t=ffffffffd7b48b01




Message: Object doesn't support this property or method
Line: 5
Char: 32821
Code: 0
URI: http://www.devtest.com/ScriptResource.axd?d=uyackf6zOjRjG7iAhHt1CAHBbDcEDRgo1RiSZ22QVzLHwPf4nspGGQ29D-AGJDU8Z2p9wGptbA33nvB9kdMua9YXlC8uykRrIybiPZrse9sWDdbOnevcSnRUyb9Z42HK3fAliUGQ-SQAmEmaabkQ8gD9-zU1&t=ffffffffb868b5f4





0
Kalina
Telerik team
answered on 19 Nov 2012, 06:56 AM
Hello thomson,

Let me suggest you try loading RadMenu scripts explicitly - as is described in this help article.

Greetings,
Kalina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
thomson
Top achievements
Rank 1
answered on 20 Nov 2012, 08:52 AM
I have tried the above advice

<asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="36000" CompositeScript-ScriptMode="Release" >
    <CompositeScript>
    <Scripts>
    <asp:ScriptReference Assembly="Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Name="Telerik.Web.UI.Ajax.Ajax.js" />
    <asp:ScriptReference Assembly="Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Name="Telerik.Web.UI.Common.Core.js" />
    <asp:ScriptReference Assembly="Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Name="Telerik.Web.UI.Common.Navigation.NavigationScripts.js" />
    <asp:ScriptReference Assembly="Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Name="Telerik.Web.UI.Menu.RadMenuScripts.js" />
     <asp:ScriptReference Assembly="Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Name="Telerik.Web.UI.Common.Animation.AnimationScripts.js" />
     <asp:ScriptReference Assembly="Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Name="Telerik.Web.UI.Common.Scrolling.ScrollingScripts.js" />
     <asp:ScriptReference Assembly="Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Name="Telerik.Web.UI.Common.Popup.PopupScripts.js" />
     <asp:ScriptReference Assembly="Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Name="Telerik.Web.UI.Window.RadWindow.js" />
     <asp:ScriptReference Assembly="Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Name="Telerik.Web.UI.Window.RadWindowManager.js" />
     <asp:ScriptReference Assembly="Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Name="Telerik.Web.UI.TreeView.RadTreeViewScripts.js" />
    </Scripts>
    </CompositeScript>
  </asp:ScriptManager>

Now we are getting these errors

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Timestamp: Tue, 20 Nov 2012 08:00:04 UTC

Message: 'document.body' is null or not an object
Line: 34
Char: 1
Code: 0
URI: http://www.devtest.com/ScriptResource.axd?d=Rs9XUr517yDGPQYNt48ZE65GJNSDqjTDkp7ItbuOwBA3hpxw58J37-s8MQvKQ0GaU_RSOwLmHktrRHG0Eo6DJqBuSGfdANdMQqgKdh_-mdxZDHj3M6o1PxDGKbVOK1f6azXSe64xunfV7FZo9XnnWwZ-9SWHkW5HGmlaS54cJgy-fzex0&t=ffffffffd7b48b01

Message: Object doesn't support this property or method
Line: 5
Char: 32821
Code: 0
URI: http://www.devtest.com/ScriptResource.axd?d=uyackf6zOjRjG7iAhHt1CAHBbDcEDRgo1RiSZ22QVzLHwPf4nspGGQ29D-AGJDU8Z2p9wGptbA33nvB9kdMua9YXlC8uykRrIybiPZrse9sWDdbOnevcSnRUyb9Z42HK3fAliUGQ-SQAmEmaabkQ8gD9-zU1&t=ffffffffb868b5f4


0
Kalina
Telerik team
answered on 23 Nov 2012, 08:49 AM
Hi thomson,

As far as I can see from your code - you use rather old version of Telerik RadControls for ASP.NET AJAX - 2008.2.826.20.
I am suggesting you to upgrade to newer version and use the assemblies built for .NET Framework 3.5.
If the issue persists - please send us simplified and compilable WebPart project that illustrates your implementation in a support ticket. We will try to reproduce the errors locally and will research for a solution.

All the best,
Kalina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
WebParts for SharePoint
Asked by
thomson
Top achievements
Rank 1
Answers by
Kalina
Top achievements
Rank 1
thomson
Top achievements
Rank 1
Kalina
Telerik team
Share this question
or