Can't register RadScriptManager under IIS 7 in Vista Computer..

10 posts, 0 answers
  1. gc_0620
    gc_0620 avatar
    225 posts
    Member since:
    Feb 2008

    Posted 15 Aug 2009 Link to this post

    Hi,

    Environment:
    - Windows Vista with Service Pack1
    - IIS 7
    - RadControls for ASP.NET AJAX Q2 2009 NET35
    - MS Visual Studio 2008

    Error Message in Visual Studio Design Page:

     

    Error Rendering Control - RadScriptManager1An unhandled exception has occurred.

    Could not load file or assembly 'Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The system cannot find the file specified.

    _______________________________________________________________________________

    I am creating a simple Website with just 1 page. Getting the above error message. I also can't register Telerik.Web.UI.WebResource.AXD from Visual Design Page because RadScriptManager Show Smart Tag is dimmed out, like read only.. In my Web Config File, I followed the instructions to register HTTPHandler from this Page.

    http://www.telerik.com/help/aspnet-ajax/radscriptmanager.html

    Below is my WEB Config, Default.aspx and Code Behind File. Please help. Thanks
    ________________

    Web Config:

     


     

    <?xml version="1.0"?>
    <!--
        Note: As an alternative to hand editing this file you can use the
        web admin tool to configure settings for your application. Use
        the Website->Asp.Net Configuration option in Visual Studio.
        A full list of settings and comments can be found in
        machine.config.comments usually located in
        \Windows\Microsoft.Net\Framework\v2.x\Config
    -->
    <configuration>
     <configSections>
      <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
       <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
         <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
         <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
         <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
         <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
        </sectionGroup>
       </sectionGroup>
      </sectionGroup>
     </configSections>
     <appSettings/>
     <connectionStrings/>
     <system.web>
      <!--
                Set compilation debug="true" to insert debugging
                symbols into the compiled page. Because this
                affects performance, set this value to true only
                during development.
            -->
      <compilation debug="false">
       <assemblies>
        <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies>
      </compilation>
      <!--
                The <authentication> section enables configuration
                of the security authentication mode used by
                ASP.NET to identify an incoming user.
            -->
      <authentication mode="Windows"/>
      <!--
                The <customErrors> section enables configuration
                of what to do if/when an unhandled error occurs
                during the execution of a request. Specifically,
                it enables developers to configure html error pages
                to be displayed in place of a error stack trace.

            <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
                <error statusCode="403" redirect="NoAccess.htm" />
                <error statusCode="404" redirect="FileNotFound.htm" />
            </customErrors>
            -->
      <pages>
       <controls>
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
       </controls>
      </pages>
      <httpHandlers>
       <remove verb="*" path="*.asmx"/>
       <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
       <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
       <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
      </httpHandlers>
      <httpModules>
       <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      </httpModules>
     </system.web>
     <system.codedom>
      <compilers>
       <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
        <providerOption name="CompilerVersion" value="v3.5"/>
        <providerOption name="WarnAsError" value="false"/>
       </compiler>
       <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
        <providerOption name="CompilerVersion" value="v3.5"/>
        <providerOption name="OptionInfer" value="true"/>
        <providerOption name="WarnAsError" value="false"/>
       </compiler>
      </compilers>
     </system.codedom>
     <!--
            The system.webServer section is required for running ASP.NET AJAX under Internet
            Information Services 7.0.  It is not necessary for previous version of IIS.
        -->
     <system.webServer>
      <validation validateIntegratedModeConfiguration="false"/>
      <modules>
       <remove name="ScriptModule"/>
       <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      </modules>
      <handlers>
       <remove name="WebServiceHandlerFactory-Integrated"/>
       <remove name="ScriptHandlerFactory"/>
       <remove name="ScriptHandlerFactoryAppServices"/>
       <remove name="ScriptResource"/>
       <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
       <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
       <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
       <add name="Telerik.Web.UI.WebResource" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>
      </handlers>
     </system.webServer>
     <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
       <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
       </dependentAssembly>
       <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
       </dependentAssembly>
      </assemblyBinding>
     </runtime>
    </configuration>

    _________________

    Defult.aspx

    <%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

    <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
       
        </div>
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
        </telerik:RadScriptManager>
        </form>
    </body>
    </html>

    ____________
    Code Behind:

     

    using System;
    using System.Configuration;
    using System.Data;
    using System.Linq;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Xml.Linq;

    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
    }

     

     

     

  2. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 17 Aug 2009 Link to this post

    Hello,

    This is strange. Here are some hints:

    Delete RadScriptManager and add the standard ScriptManager. Delete the Telerik axd handlers. Add any other RadControl on the page - e.g. RadComboBox. Right click on it and select Replace ScriptManager with RadScriptManager - this should register automatically the handlers in the web.config - you should see an alert box that the web.config is updated successfully. Build and run.

    Let us know the results.


    Best wishes,
    Veselin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. gc_0620
    gc_0620 avatar
    225 posts
    Member since:
    Feb 2008

    Posted 17 Aug 2009 Link to this post

    Hellow Veselin,

     

    I am using RadControls for ASP.NET AJAX Q2 2009 NET35. I do not have standard Telerik ScriptManger in my Visual Studio Tool Box, Only RadScriptManager. 

    Thanks

  5. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 18 Aug 2009 Link to this post

    Hi

    I meant the ScriptManager that comes with the .NET 3.5 framework (under the Ajax Extensions tab in the Toolbox). Please find attached a sample web.config file that should work in IIS7.


    Greetings,
    Veselin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Jason
    Jason avatar
    5 posts
    Member since:
    Apr 2008

    Posted 21 Aug 2009 Link to this post

    I'm having similar issues.  I'm not sure what changed but the only thing that has changed on my system has been installing some hot fixes from MS that should be unrelated.

    Environment:
    VS 2008
    Windows XP SP 2

    Steps that I have taken to resolve:

    Uninstalled RadControls.
    Rebooted system.
    Opened VS to make sure it didn't have any references to the dlls still.
    Installed RadControls.
    Rebooted.
    Started up VS 2008.
    Created a new Telerik Web site.
    Added RadScriptManager, boom get the error.

    I've even tried specifying specifically what dll and version in the webconfig to no avail. :(

    After specifying the dll and version in webconfig, I can see some of the RadControls in design mode, and things apparently compile properly, so it seems to only be design mode not working :(
  7. gc_0620
    gc_0620 avatar
    225 posts
    Member since:
    Feb 2008

    Posted 21 Aug 2009 Link to this post

    Hi Jason,

    Steps that I have taken.

    I did almost the same steps as yours. The steps that are different from yours are highlighted in Bold.

    Steps that I have taken to resolve:

    • Uninstalled RadControls.
    • Rebooted system.
    • Opened Regedit. (Deleted all Instances of Telerik).
    • Rebooted system.
    • Opened VS to make sure it didn't have any references to the dlls still.
    • Installed RadControls.
    • The latest version of Telerik (RadControls for ASP.NET AJAX Q2 2009 NET35) do not have option to register Telerik Controls in VS. This is what I did to register the controls:

                 

            - I created a Tab (Telerik) in VS toolbox,
            - Seleted Choose Items.  (took some minutes to popup next screen)
            - Under .Net Frame Network Components (Browse to folder ->C:\Program Files\Telerik\RadControls for ASP.NET AJAX Q2 2009\Bin35) and added Telerik Web Controls from there
          

    • Rebooted.
    • Started up VS 2008.
    • Created a new Telerik Web site.

    Is working fine Now... Good luck.

  8. Jason
    Jason avatar
    5 posts
    Member since:
    Apr 2008

    Posted 21 Aug 2009 Link to this post

    Thanks for the added steps.  As soon as I get out of my next meeting I'll try and and post the results.

    -Jason
  9. n gh
    n gh avatar
    2 posts
    Member since:
    Jan 2010

    Posted 31 Jan 2010 Link to this post

    Hello
    I have problem by using this version of telerik  :  RadControls_for_ASP.NET_AJAX_2009_3_1208_trial
    All of my controls have this error : 

     The system cannot find the file specified. File name: 'Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' at Telerik

    And i can't use them .
    i did all things tou had said.but it didn't work .please help me.
    thanks alot.
  10. Robert Gouin
    Robert  Gouin avatar
    11 posts
    Member since:
    Oct 2009

    Posted 14 Feb 2010 Link to this post

    This is an issue I too am running into, and it has only been since the last public release.  Before when I had a website or project I would add a telerik control, I could then click and add a script manager, register the axd bla bla bla, no problems at all, and now, even after a clean install, fresh 2008 with updates, I am unable to use any telerik control.  Very annoying, I have wasted hours now trying to figure out where this problem is coming from.
  11. n gh
    n gh avatar
    2 posts
    Member since:
    Jan 2010

    Posted 15 Feb 2010 Link to this post

    Hi,

    I solved it.

     

    This is an issue with the Global Assembly Cache (GAC) of the machine not registering  controls properly.  If you follow the instructions for adding and removing our controls in the GAC (found in this article: http://www.telerik.com/help/aspnet-ajax/installaddtoglobalassemblycache.html) you should be able to resolve this issue.   if you go through the steps and you already see  controls in the GAC then you have to first remove them and then add them again.

     

    Kind Regards,

     

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