Method Error 500 In Ajax Cascading Dropdownlist
Contents |
here for a quick overview of the cascadingdropdown webmethod error 500 site Help Center Detailed answers to any questions
Ajaxtoolkit Cascadingdropdown Method Error 500
you might have Meta Discuss the workings and policies of this site About Us method error 403 cascadingdropdown 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 takes a minute: Sign up AJAX Cascading Dropdown with Method Error 500 up vote 0 down vote favorite 1 I've have a c# cascadingdropdown which works perfectly in debug locally and in debug mode on the live server, but I get [Method Error 500] in both drop downs when I view the page live through a browser. If I click the first drop down [Method Error 500] that then populates the second dropdown with [Method Error 500]. Here's the ASPX code:
ASP.NET Community Standup Forums Help Home/ASP.NET Forums/General ASP.NET/ASP.NET AJAX + Ajax Control Toolkit/"Method error 500" with CascadingDropDown "Method error 500" with CascadingDropDown [Answered]RSS 34 replies Last post Dec 18, 2013 04:31 AM by psycofran ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Support Options Advanced Search Related Links GuidanceVideos Reply j_gaylord Member 87 Points 697 Posts ASPInsidersMVP "Method error 500" with CascadingDropDown May 22, 2007 03:45 PM|j_gaylord|LINK I have a web service that I'm binding http://stackoverflow.com/questions/16439120/ajax-cascading-dropdown-with-method-error-500 to the CascadingDropDown. The service runs perfectly fine. However, I'm receiving a "Method error 500." Again, I'm sure I'm missing something small like a reference or something, but I can't seem to find it. Jason N. Gaylord ASPInsider and Microsoft MVP http://jasongaylord.com Reply MajJaz42 Member 40 Points 12 Posts Re: "Method error 500" with CascadingDropDown May 22, 2007 06:47 http://forums.asp.net/t/1113659.aspx?+Method+error+500+with+CascadingDropDown PM|MajJaz42|LINK I have the same issue; I can successfully test out the web service by opening the file from the webserver and all the data appears to be ok, but the dropdown returns a 500 error when it renders on the page. Anyone? Reply j_gaylord Member 87 Points 697 Posts ASPInsidersMVP Re: "Method error 500" with CascadingDropDown May 23, 2007 11:21 AM|j_gaylord|LINK Still no answer... Jason N. Gaylord ASPInsider and Microsoft MVP http://jasongaylord.com Reply j_gaylord Member 87 Points 697 Posts ASPInsidersMVP Re: "Method error 500" with CascadingDropDown May 23, 2007 01:32 PM|j_gaylord|LINK Here is my sample web service: using AjaxControlToolkit; using Arch.Data; using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Data; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; using UnitedOneResources.Objects; [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public class test : System.Web.Services.WebService { public test() { } [System.Web.Services.WebMethod] [System.Web.Script.Services.ScriptMethod] public CascadingDropDownNameValue[] GetDropDownStates(string knownCategoryValues, string Category) { DataSet ds = Dal.ExecuteSQL("select State as StateID, State_Name as StateName from t_State order by State_Name"); List
Tips/Tricks Top Articles Beginner Articles Technical Blogs Posting/Update Guidelines Article Help Forum Article Competition Submit an article or tip Post your http://www.codeproject.com/Questions/201182/Method-Error-on-cascading-dropdownlist Blog quick answersQ&A Ask a Question View Unanswered Questions View All Questions... Linux questions C# questions ASP.NET questions SQL questions fabric questions discussionsforums All Message Boards... Application Lifecycle> http://gaaton.blogspot.com/2007/07/solution-to-method-error-500-in.html Running a Business Sales / Marketing Collaboration / Beta Testing Work Issues Design and Architecture ASP.NET JavaScript C / C++ / MFC> ATL / WTL / STL method error Managed C++/CLI C# Free Tools Objective-C and Swift Database Hardware & Devices> System Admin Hosting and Servers Java .NET Framework Android iOS Mobile SharePoint Silverlight / WPF Visual Basic Web Development Site Bugs / Suggestions Spam and Abuse Watch features Competitions News The Insider Newsletter The Daily Build Newsletter Newsletter archive Surveys Product Showcase Research Library method error 500 CodeProject Stuff communitylounge Who's Who Most Valuable Professionals The Lounge The Insider News The Weird & The Wonderful The Soapbox Press Releases Non-English Language > General Indian Topics General Chinese Topics help What is 'CodeProject'? General FAQ Ask a Question Bugs and Suggestions Article Help Forum Site Map Advertise with us About our Advertising Employment Opportunities About Us Ask a Question All Questions All Unanswered FAQ Method Error 500 on cascading dropdownlist Rate this: Please Sign up or sign in to vote. See more: ASP.NET This is my web service which i used to retrieve data from database (I used data set for it).It runs on IIS properly but when I upload it on web server it gives method error 500. [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.Web.Script.Services.ScriptService] public class ReceiptService : System.Web.Services.WebService { public ReceiptService () { //Uncomment the following line if using designed components //InitializeComponent(); } [WebMethod] public CascadingDropDownNameValue[] GetSchoolName(string knownCategoryValues, string category) { dsScoolTableAdapters.school_detailTableAdapter school_detailAdapter = new dsScoolTableAdapte
the same aspx page add in <%@ Page .... EnableEventValidation="false" ...%>3. If yet you get error - try ValidateRequest="false" in the tag <%@ Page ...%>Good luck :-) Posted by Gever at 09:55 Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest Labels: AJAX, ASP.NET 7 comments: Anonymous said... tks your comments resolves my problem.Muchas gracias 7/28/2008 8:46 PM Anonymous said... Thank you very much for posting this solution for web servicesThanks,Navneet 9/22/2008 1:54 PM Anonymous said... Moi aussi,la solution :1. In WebService add attribute [System.Web.Script.Services.ScriptService()] to class.m'a sauvé.Thank you,Laurent. 11/03/2008 4:29 PM Anonymous said... After a LONG search, this solved the issue. Thanks! 2/26/2009 5:26 AM Anonymous said... thanks expert 10/14/2009 9:28 AM Anonymous said... Thanks friend it solved my problem. thanks again. 10/03/2011 1:53 PM Anonymous said... Thank You very much,it realy helps me to solve my problem. 1/13/2013 4:43 PM Post a Comment Newer Post Older Post Home Subscribe to: Post Comments (Atom) Search Loading... Labels Add-ins (11) AJAX (13) ASP.NET (41) C# (81) Entity Framework (2) Excel (1) Framework 4.0 (2) Humor (2) IIS (1) IOC (1) JavaScript (3) LINQ (8) Log4net (1) Programming (41) SQL (16) Tools (30) Useful (31) Utilities (6) Visual Studio 2012 (2) WCF (4) Web (15) Windows Service (2) Links C# extension DiskOnKey .Net Adventures Design Patterns in C# ISerializable סדנת היכרות עם עולם היין Popular Posts BIOS error signals During inclusion of a computer the sound signal is always audible, but sometimes it is more, than a lonely signal. You what is it? Ask, and ... Convert ASCII to Unicode in C# private string Convert(int asciiCode) { Encoding ascii = Encoding.UTF32; char c = (char)asciiCode; Byte[] b = ascii.GetBy... Convert UTF-8 to Unicode private static string Utf8ToUnicode( string utf8) { return Encoding.Unicode.GetString( Encoding.Convert( Encoding.U... Solution to Method error 500 in CascadingDropDown 1. In WebService add attribute [System.Web.Script.Services.ScriptService()] to class. 2. If you use another asp controls in the same aspx pa... How to add ComboBox to PropertyGrid Create new class