Scriptmanager

Discussion in 'ASP.NET / ASP.NET Core' started by minonktalkc, Oct 24, 2008.

  1. I have compiled my system using Net Framework 3.5 and uploaded the new dll's and the AjaxControlToolkit dll. I attempted to run a program that had an AjaxControlTookit control in it and got a scriptmanager error that reads as follows:

    Compiler Error Message: CS0012: The type 'System.Web.UI.ScriptManager' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
    PublicKeyToken=31bf3856ad364e35'.

    The program runs ok on my development computer. The assembly reference in my aspx file is :

    <%@ Register assembly='AjaxControlToolkit' namespace='AjaxControlToolkit' tagprefix='cc2' %>

    The code for my scriptmanager is

    <cc2:ToolkitScriptManager ID='ScriptManager1' runat='server'>
    </cc2:ToolkitScriptManager>

    I do not understand why it says I need to upload an assembly for the scriptmanager as I am using the AjaxControlToolkit scriptmanager and have uploaded the dll for the control kit. Anyone else have this problem?
     
  2. To get my AjaxControlToolKit accordian control to work I had to upload the System.Web.dll program to my bin directory. That allowed my accordian control to come up but now it doesn't respond to any of my clicks. Are their other programs I have to upload such as Javascript files to use 3.5 controls? Does Discountasp support the AjaxControlToolkit and NET Framework 3.5? If so, why do I have to upload 3.5 System.dlls from my development machine. Are there any rules regarding the use of 3.5?
     
  3. Just want to let everyone know that I solved the problem of my AjaxControlToolkit accordian control not working by uploading my new web.config file. When I upgraded my system to NET Framework 3.5 in Visual Studio, my web.config file was updated in the process. So if you are upgrading your system to NET 3.5, upload your new web.config file and upload the System.Web.Extensions.dll from your 3.5 directory.
     
  4. Whats the error message? Do you have a link to show?

    rcp
    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page