I am new to Web Sevice, I am getting the following error when I tried to run my page (Local) in Chrome ConsoleERROR\[quote\] Failed to load resource: the server responded with a status of 405 (Method Not Allowed) \[code\]http://localhost:12015/myWebService.asmx?op=GetCategories\[/code\]\[/quote\]Here is the related code: jQuery\[code\] $.ajax({ url: "http://localhost:12015/myWebService.asmx?op=GetCategories", type: "POST", ------------ ------------ success: function (data) { var categories = data.d; $.each(categories, function (index, category) { category.CategoryId).text(category.CategoryName); }); }, error: function (e) { //always executing 'error' only alert("hello"); }\[/code\]web service URL\[quote\] \[code\]http://localhost:12015/myWebService.asmx\[/code\]\[/quote\]\[code\] [WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public List<Categories> GetCategories() { //code }\[/code\]Page URL\[quote\] \[code\]http://localhost:11761/Default.aspx\[/code\]\[/quote\]When I clicked the link(which was mentioned in the error), it is displaying the page. Then what could be the problem ? I dont know what the error means (and also which part of code to show). Please help.