Method not allowed. error on AjaxEnabledSCFService

I have a RadGrid in my ASP.Net web form.Now i want to bind this on client-side through a AjaxEnabledWCFService.After all the implementations done it seems the data is being retrieved through the responsebut rather than showing it in the grid it shows an messge like "Method not allowed.".I could not able to find the actual reason behind this error, and what is the cause for dat not being populated.Here are the details of my implementations :-I have added the particular service to the Script manager like below :-\[code\]<telerik:RadScriptManager ID="RadScriptManager1" runat="server"> <Services> <asp:ServiceReference Path="~/services/CustomerListService.svc" /> </Services> <Scripts> <%--Needed for JavaScript IntelliSense in VS2010--%> <%--For VS2008 replace RadScriptManager with ScriptManager--%> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" /> </Scripts> </telerik:RadScriptManager>\[/code\]Then added the service to the RadGrid ClientEvents - DataBindings tag like below :-\[code\] <DataBinding SelectMethod="GetCustomers" Location="~/services/CustomerListService.svc" SortParameterType="Linq" FilterParameterType="Linq"> </DataBinding> \[/code\]I have a service named orderListService with DataContract as order,ServiceContract as GetCustomers() as below codes :-Ex:[ServiceContract(Namespace = "")][AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]public class CustomerListService{\[code\][OperationContract]public List<Customer> GetCustomers(){ CustomerData CustData = http://stackoverflow.com/questions/12721614/new CustomerData(); System.Data.DataTable dt = CustData.GetCustomersList(1, 1,""); List<Customer> Customerist = new List<Customer>();//Here Customer is DataContract foreach (System.Data.DataRow dr in dt.Rows) { Customer cust = new Customer(); SetPropertiesFromOrderRow(cust, dr);//set all the property values from DataRow to Order CustomerList.Add(cust); } return CustomerList;}\[/code\]}The settings in the configuration file are like below :-\[code\] <endpointBehaviors> <behavior name="ClientSideBindingTest.services.CustomerListServiceAspNetAjaxBehavior"> <enableWebScript /> </behavior> </endpointBehaviors> <services> <service name="ClientSideBindingTest.services.CustomerListService"> <endpoint address="" behaviorConfiguration="ClientSideBindingTest.services.CustomerListServiceAspNetAjaxBehavior" binding="webHttpBinding" contract="ClientSideBindingTest.services.CustomerListService" /> </service> </services>\[/code\]Please let me know if anyone having any suggestions here and also i need to know how to pass the parameter to the service method to get the values as per the parameter supplied.Thanks in advance.
 
Back
Top