Problem with installing RadControls Q3 2009

3 posts, 0 answers
  1. J
    J avatar
    143 posts
    Member since:
    Jun 2006

    Posted 01 Dec 2009 Link to this post

    I tried to install RadControls Q3 2009 but get the following error when I run this code:
    using System;  
    using System.Runtime.InteropServices;  
    using System.Web.UI;  
    using System.Web.UI.WebControls;  
    using System.Web.UI.WebControls.WebParts;  
    using System.Xml.Serialization;  
    using Microsoft.SharePoint;  
    using Microsoft.SharePoint.WebControls;  
    using Microsoft.SharePoint.WebPartPages;  
    using Telerik.Web.UI;  
    namespace WebPart1  
        public class WebPart1 : System.Web.UI.WebControls.WebParts.WebPart  
            public WebPart1()  
            protected override void CreateChildControls()  
                // TODO: add custom rendering code here.  
                RadGrid rg1 = new RadGrid();  
                SPWeb web = SPContext.Current.Web;  
                SPList list = web.Lists[0];  
                rg1.DataSource = list.Items;  

    Here is the error I get:
    The type 'System.Web.UI.IScriptControl' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Extensions, Version=, Culture=neutralPublicKeyToken=31bf3856ad364e35'.   

    The error seems to be that I dont have version of the System.Web.Extensions dll.  Ok fair enough, but I thought to get
    this version you'd have to download Ajax Extension from and it would create a folder in the path C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions with a new 2.0 folder?  All I seem to have is a folder v1.0.61025, in this folder is a System.Web.Extensions.dll version 1.0.61231.0.  Where do you get this version?

  2. J
    J avatar
    143 posts
    Member since:
    Jun 2006

    Posted 01 Dec 2009 Link to this post

    Ok I did find the file but not in 
    C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions
    instead i found it in
    C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5

    Not sure why exactly the ASP.NET extensions i downloaded from didnt install it but oh well.  I can compile the previous code but I havent actually tried to deploy yet.  Havent made any changes to my web.config file according to

    Anyway let me see how it goes.

  3. Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 01 Dec 2009 Link to this post

    Hello J,

    I could not completely understand your configuration and whether you are using .NET 2.0 and VS 2005 or .NET 3.5 and VS 2008. If you are using the VS 2005 with .NET 2.0 you should download teh mentioned Ajax Extensions assembly and reference it in your project. If yiou have already installed it, you should have a new template site added - you should create a new AjaxEnabledWebSite and everything should work fine. The Telerik.Web.UI.dll you should use is from the Bin folder of the pacjage.

    If you are using .NET 3.5 with VS 2008, you do not need to download anything - AJAX is enabled by default in this case. All you should do is to make sure that you have used the Telerik.Web.UI.dll from the Bin35 folder of the installation package.

    It is important to pay attention from which folder you take the Telerik.Web.UI.dll because, e.g if you put the dll from the Bin35 folder in an ajax enabled .NET 2.0 site, you will get error messages.

    I hope that my explanations are helpful, in case you experience any further problems, do not hesitate to contact us again!

    All the best,
    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.
Back to Top