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

RadScriptManager and ServiceReference

1 Answer 164 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Felipe Casanova
Top achievements
Rank 1
Felipe Casanova asked on 03 Oct 2011, 06:35 PM
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>

1 Answer, 1 is accepted

Sort by
0
Felipe Casanova
Top achievements
Rank 1
answered on 04 Oct 2011, 09:33 AM
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>
Tags
ScriptManager and StyleSheetManager
Asked by
Felipe Casanova
Top achievements
Rank 1
Answers by
Felipe Casanova
Top achievements
Rank 1
Share this question
or