RadScriptManager and ServiceReference

2 posts, 0 answers
  1. Felipe Casanova
    Felipe Casanova avatar
    56 posts
    Member since:
    Feb 2010

    Posted 03 Oct 2011 Link to this post

    I've got a service that works fine when added to the servicereferencecollection of a scriptmanager but when I swap that out for RadScriptManager it fails to load the script. I get a "the server responded with a status of 400 (Bad Request)" error message in Chrome. Does anyone have any idea what would cause this?

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
                <Services>
                    <asp:ServiceReference Path="~/Services/AjaxFeatureService.svc" />
                </Services>
            </telerik:RadScriptManager>
  2. Felipe Casanova
    Felipe Casanova avatar
    56 posts
    Member since:
    Feb 2010

    Posted 04 Oct 2011 Link to this post

    I fixed this simply by adding the service in the system.serviceModel element in web.config. Seems like the RadScriptManager needs to have the config when the asp.net ScriptManager is a bit more forgiving.

    Something like this where I reuse the behaviourConfiguraton of my RadScheduler web service.

    <service name="Web.Services.AjaxFeatureService">
            <endpoint address="" behaviorConfiguration="SchedulerWcfServiceAspNetAjaxBehavior" binding="webHttpBinding" contract="Web.Services.AjaxFeatureService" />
          </service>
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top