Controls throw unknown error - any prerequisites?

4 posts, 0 answers
  1. Horst Molderings
    Horst Molderings avatar
    2 posts
    Member since:
    Mar 2003

    Posted 06 May 2008 Link to this post

    On my machine (Win XP, .NET 2.0, ASP.NET Ajax, Visual Studio 2005, RadControls for ASP.NET Ajax) I have created a new "ASP.NET Ajax" website project.

    On several pages I tried to use RadControls such as the Grid or the RadPanel. Nothing special - just pulled the Widget into the designer view, set up a simple databinding (in the design view, the rad control then re-formats according to the data returned by the binding) and started the application. No other configurations.

    Since I see the rad controls change their format / layout according to the data / data structure returned by the data binding, I assume that this portion sort of works.

    But when I start the application, I am redirected to my error.aspx page. The trace doesn't provide any information what went wrong. 
    When I comment the rad controls out in the aspx-page, the website works.

    Are there any prerequisites that I need to fix before using Prometheus?

    Thanks

    s.
  2. Todd Anglin
    Todd Anglin avatar
    2040 posts
    Member since:
    Aug 2005

    Posted 06 May 2008 Link to this post

    Horst-

    Do you have an ASP.NET AJAX ScriptManager on your page? Since the RadControls for ASP.NET AJAX are built directly on Microsoft's ASP.NET AJAX framework, you need to make sure that you have a ScriptManager on every page that has RadControls. Or even better, you can place a RadScriptManager on every page to completely optimize your RadControl JavaScript links.

    Other than that, there are no special pre-reqs. Just ASP.NET AJAX Extensions, the ScriptManager, a site with the proper ASP.NET AJAX web.config file, and the RadControls. Give that a try and let me know if you still have any trouble.

    -Todd
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Horst Molderings
    Horst Molderings avatar
    2 posts
    Member since:
    Mar 2003

    Posted 07 May 2008 Link to this post

    Todd,

    thanks for your quick reply.
    I had the RadScriptManager in my master page - which did not work.
    When I replaced it with the standard ASP script manager, the controls worked.

    No idea, though, why the RadScriptManager doesn't work...

    s.
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 07 May 2008 Link to this post


    If you use RadScriptManager you have to register the Telerik.Web.UI.WebResource.axd file in the web.config file:

    <httpHandlers> 
       <remove path="*.asmx" verb="*" /> 
       <add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" 
        validate="false" /> 
       <add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" 
        validate="false" /> 
       <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" 
        validate="false" /> 
       <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.1.415.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" 
        validate="false" /> 
      </httpHandlers> 

    You can easily do this using the smart tag of the RadScriptManager. Please, see the attached screenshot for reference.



    Peter
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top