RadChart ASPNET AJAX Q1 2008 and MOSS 2007

Thread is closed for posting
9 posts, 1 answers
  1. Mohamed
    Mohamed avatar
    8 posts
    Member since:
    Apr 2008

    Posted 24 Apr 2008 Link to this post

    How can I make Telerik.Web.UI.RadChart SafeControl within MOSS 2007?

    When I add 

    <

    SafeControl Assembly="Telerik.Charting" Namespace="Telerik.Charting" TypeName="*" Safe="True" />

    I get the following error, The control type 'Telerik.Web.UI.RadChart' is not allowed on this page. The type is not registered as safe.

    What else do I need to add in the web.config file within MOSS 2007.

    In the previous releases I got the page to work with the following lines.

    <

    SafeControl Assembly="RadChart.Net2" Namespace="Telerik.Charting" TypeName="*" Safe="True" />

    <

    SafeControl Assembly="RadChart.Net2" Namespace="Telerik.WebControls" TypeName="*" Safe="True" />

    Thanks

  2. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 25 Apr 2008 Link to this post

    Hi Mohamed,

    You should add one more SafeControl directive:

    <SafeControl Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TypeName="*" Safe="True" /> 



    Kind regards,
    Manuel
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mohamed
    Mohamed avatar
    8 posts
    Member since:
    Apr 2008

    Posted 25 Apr 2008 Link to this post

    Thanks for the quick response Manuel, when I add the following line in the SafeControl directive <SafeControl Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TypeName="*" Safe="True" /> 

     I get the following message in the page I’m developing

    Server Error in '/' Application.


    Parser Error

    Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

    Parser Error Message: This page has encountered a critical error. Contact your system administrator if this problem persists.

    Source Error:

     

    Line 3:  <%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>

    Line 4:  <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

    Line 5:  <%@ Register TagPrefix="wssuc" TagName="Welcome" src="~/_controltemplates/Welcome.ascx" %>

    Line 6:  <%@ Register TagPrefix="wssuc" TagName="DesignModeConsole" src="~/_controltemplates/DesignModeConsole.ascx" %>

    Line 7:  <HTML dir="<%$Resources:wss,multipages_direction_dir_value%>" runat="server" xmlns:o="urn:schemas-microsoft-com:office:office">

     

    And I get the following in all other pages (including the main home page of MOSS)

    Server Error in '/' Application.


    Parser Error

    Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

    Parser Error Message: This page has encountered a critical error. Contact your system administrator if this problem persists.

    Source Error:

     

    Line 1:  <%@ Page Inherits="Microsoft.SharePoint.Publishing.TemplateRedirectionPage,Microsoft.SharePoint.Publishing,Version=12.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %> <%@ Reference VirtualPath="~TemplatePageUrl" %> <%@ Reference VirtualPath="~masterurl/custom.master" %>

    Line 2:  <html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"><head>

    Line 3:  <!--[if gte mso 9]><xml>

     

    Any suggestions? Thanks in advance

  5. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 25 Apr 2008 Link to this post

    Hi Mohamed,

    If the Telerik.Web.UI assembly is installed in the GAC, you should supply the fully-qualified assembly name here:

    <SafeControl Assembly="Telerik.Web.UI, Version=2008.1.415.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TypeName="*" Safe="True" />  



    Regards,
    Manuel
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Mohamed
    Mohamed avatar
    8 posts
    Member since:
    Apr 2008

    Posted 25 Apr 2008 Link to this post

    Hello Manuel, thanks again :)
    I just installed Telerik.Web.UI assembly into the GAC, and added the line you provided me with to the web.config, I’m still getting the same error (the last one I posted).

     Any directions?

    Thanks,
     Moe 

  7. Mohamed
    Mohamed avatar
    8 posts
    Member since:
    Apr 2008

    Posted 25 Apr 2008 Link to this post

    Hello Manuel,

     

    I added the following line in the web.config file after installing the appropriate dll’s into the GAC

          <SafeControl Assembly="Telerik.Web.UI, Version=2008.1.415.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TypeName="*" Safe="True" />

          <SafeControl Assembly="Telerik.Charting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763" Namespace="Telerik.Charting" TypeName="*" Safe="True" />

     

    Now the error message I’m getting

     

    Server Error in '/' Application.


    Value does not fall within the expected range.

    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.ArgumentException: Value does not fall within the expected range.

    Please help

  8. Answer
    Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 29 Apr 2008 Link to this post

    Hi Mohamed,

    The most probable reason for this error message is that your MOSS server does not have the ASP.NET AJAX extensions installed (and the RadControls for ASP.NET AJAX suite is based on them and needs them for its correct operation).

    You can refer to this blog post here that explains how you could add support for ASP.NET AJAX for your SharePoint installation.

    Hope this helps.


    Kind regards,
    Manuel
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  9. Mohamed
    Mohamed avatar
    8 posts
    Member since:
    Apr 2008

    Posted 08 May 2008 Link to this post

    hello Manuel,
    Thanks you very much for your help. Your suggestion worked great.. thanks again
  10. Savan
    Savan avatar
    3 posts
    Member since:
    Jul 2011

    Posted 01 Aug 2011 Link to this post

    If you have IIS7 and Windows Server 2007, then you need to add HttpHandler enetry using "IIS" only. (Using Content View)
    If you add that entry, directly, by modifing web.config. Then it does not work.

    Actully, IIS content view adds entry in " <system.webServer>" for HttpHandler.


    Thanks
    Savan
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017