Home > internal server > jquery web service internal server error

Jquery Web Service Internal Server Error

Contents

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies 500 internal server error when calling web service of this site About Us Learn more about Stack Overflow the company

Request Format Is Unrecognized For Url Unexpectedly Ending

Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users

500 Internal Server Error Ajax Post

Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a

Failed To Load Resource: The Server Responded With A Status Of 500 (internal Server Error)

minute: Sign up 500 (Internal Server Error) while calling webservice from jquery for autosuggest up vote 0 down vote favorite When i am trying to access the webservice for autosuggest from the script, i am getting an internal server (500) error. ERRoR :POST localhost:4202/Presentation/AutoCompleteService.asmx/GetAutoCompleteData 500 (Internal Server Error) jquery.min.js:130 Kindly help **JQUERY** which is used for calling the service jQuery(function () { fiddler $(".autosuggest").autocomplete({ source: function (request, response) { $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "AutoCompleteService.asmx/GetAutoCompleteData", data:"{'stationname':'" + document.getElementById('MasterContent_srctxtbx').value + "'}", dataType: "json", dataFilter: function (data) { return data; }, success: function (data) { response(data.d); }, error: function (XMLHttpRequest, result, errorThrown) { alert(errorThrown); } }); } }); }); [System.Web.Script.Services.ScriptService] public class AutoCompleteService : System.Web.Services.WebService { [WebMethod] public List GetAutoCompleteData(string stationname) { List result = new List(); DataTable traindetails = dataaccess.GetTrainDetailsForautosugget(stationname); for (int i = 0; i < traindetails.Rows.Count; i++) { result.Add(traindetails.Rows[i]["Source"].ToString()); } return result; } } jquery ajax web-services autosuggest share|improve this question edited Jan 30 '14 at 13:46 asked Jan 30 '14 at 13:37 user3057368 113 remove dataType: "json" and check once. –vamsi Jan 30 '14 at 13:40 You need to debug AutoCompleteService.asmx - Set a breakpoint early on in the code, run with debug (F5 - Visual Studio) assuming the breakpoint is hit, step through (F10) until an exception occurs - The exception should give you a clue as to what is going wrong. –Simon Harris Jan 30 '14 at 13:41

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only http://stackoverflow.com/questions/21458051/500-internal-server-error-while-calling-webservice-from-jquery-for-autosuggest takes a minute: Sign up Calling web method from Jquery-Ajax ..Error:Internal Server Error up vote 2 down vote favorite 3 I am learning JQuery and today what I am making is a cascading dropdown (Country State and City). My code so far is as under Untitled Page

Country State City
The web method is as under using System; using System.Collections.Generic; using System.Linq; using System.Web.Services; public partial class CascadingDropDown : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { PopulateCountry(); } } private void PopulateCountry() { DataSource ds = new DataSource(); ddlCountry.DataSource = ds.GetCountryList(); ddlCountry.DataValueField = "CountryCode"; ddlCountry.DataTextField = "CountryName"; ddlCountry.DataBind(); } [WebMethod] public List GetSelectedStates(string countryID) { DataSource ds = new DataSource(); var stateList = ds.GetStateList(); var result = stateList.Where(i => i.CountryCode == countryID); return result.ToList(); } } But while I am choosing any country from the country drop down, I am getting "Inter

in the picture below. Send Cancel From : guestTo : Subject : Content : Type https://forum.jquery.com/topic/internal-server-error-jquery-and-ajax-json the characters you see in the picture below. Send Update CancelFeedbackEmail IDSubject : Comments : Send CancelPrivate MessageType the characters you see in the picture below. Type the characters you see in the picture below. Attach files Desktop Zoho Docs Google Docs Each Attachment size should internal server not exceed 1.0 MB. Max no of attachments : 3Loading User Profile... guest Response titleThis is preview!Attachments Publish Back to edit Cancel ()Sign In New to this Portal? Click here to Sign upYou can also use the below options to loginLogin with FacebookLogin with GoogleLogin with Yahoo internal server error jQuery Plugins UI Meetups Forum Blog About Donate All Forums Recent Posts Log In Search jQuery Search jQuery Forum Move this topicForum : Getting StartedUsing jQueryUsing jQuery PluginsUsing jQuery UIDeveloping jQuery CoreDeveloping jQuery PluginsDeveloping jQuery UIQUnit and TestingAbout the jQuery ForumjQuery ConferencesjQuery MobileDeveloping jQuery Mobile Sub forum : Move this topic Cancel Getting Started erummirza Internal server error jquery and ajax json in Getting Started • 3 years ago i have following code using jquery and json <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Params.aspx.cs" Inherits="JQueryAjax.Params" %>

 

© Copyright 2019|winbytes.org.