This is a migrated thread and some comments may be shown as answers.

Controls throw unknown error - any prerequisites?

3 Answers 66 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Horst Molderings
Top achievements
Rank 1
Horst Molderings asked on 06 May 2008, 06:14 PM
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.

3 Answers, 1 is accepted

Sort by
0
Todd Anglin
Top achievements
Rank 2
answered on 07 May 2008, 02:11 AM
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
0
Horst Molderings
Top achievements
Rank 1
answered on 07 May 2008, 10:36 AM
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.
0
Peter
Telerik team
answered on 07 May 2008, 01:40 PM

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
Tags
General Discussions
Asked by
Horst Molderings
Top achievements
Rank 1
Answers by
Todd Anglin
Top achievements
Rank 2
Horst Molderings
Top achievements
Rank 1
Peter
Telerik team
Share this question
or