Ajax Cascadingdropdown Method Error 12030
using CascadingDropDowns linked to a databse as described on http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Walkthrough/CCDWithDB.aspx Unfortunatly, the code contains a little bug, resulting a Method error 12030 or Method error 12031 being displayed in the method error 500 in ajax cascading dropdownlist dropdownlist, instead of the expected data. Because the webservice is being called ajax cascading dropdown method error 500 from (java)script, using ASP.NET AJAX, the enclosing class has to be decorated with the System.Web.Script.Services.ScriptService attibute to make it work. C#: [System.Web.Script.Services.ScriptService()] public class MyWebserviceClass : System.Web.Services.WebService { [WebMethod] public function MyWebServiceFunction() { // function body } } VB: Public Class MyWebserviceClass Inherits System.Web.Services.WebService Public Function MyWebServiceFunction() ' function body End Function End Class Too bad Microsoft forgot to mention this in the example! Method error 12002 And when we're at it: Method error 12002 indicates a timeout error, not uncommon when debugging. Method Error 500 This may also occur from time to time. It's the server telling you there's been an Internal Server Error with code 500. You may want to debug the web service you're using when you see this error. This entry was posted in C#, DotNET, Programming, VB and tagged ajax, error, webservice. Bookmark the permalink. ← Base64 encoder/decoder DotNET → Leave a Reply Cancel reply Your email address will not be published. Required fields are marked * Name * Email * Website Comment Search for: Recent Posts The cast to value type ‘Int32' failed because the materialized value is null. Either the result type's generic parameter or the query must use a nullable type (when databinding to a LINQ query) An unhandled exception of type ‘System.ArgumentException' occurred in UserControlTestContainer.exe Determine where a javascript alert is coming from Windows power configuration Disable weak SSL ciphers on IIS 6 and Windows Server 2003 Recent CommentsElmer on Extracting a substring from a TEXT field in MySQLSerge on Extracting a substring from a TEXT field in MySQLtomclock on HttpContext.Current.Request.UserHostAddress returns ::1Alex on Installing Windows Fundamentals (WinFLP) on Asus Eee PCElmer on Installing Windows Fundamentals (WinFLP) on Asus Eee PCArchives December 2013 November 2013 October 2013 July 2013 May 2013 April 2013 February 2013 January 2013 September 2012 June 2012 September 20
question and get tips & solutions from a community of 418,418 IT Pros & Developers. It's quick & easy. AJAX + Webserivces = error 12030 P: n/a kpg I have an AJAX enabled web service consumed by an AJAX enabled web app, given a zip code it returns the city and state. Tested the web service, it works fine. I created a services collection in the script manager and pointed to my web service. I call the web service from an html input button click, per MS examples. I get a 12030 error. Now it seems the web service must be in the http://redhead-it.com/blog/2007/10/method_error_12030_when_using_cascadingdropdown/ same domain as the web app, while this is a severe limitation I figured this was the problem. So I created the web service on my localhost, I get the same error. I played around with page methods but kept getting object not defined errors so I gave up on that. (It seems the web method must be declared in the aspx file, but I still get this error.) Considering that the https://bytes.com/topic/asp-net/answers/683921-ajax-webserivces-error-12030-a same domain limitation was enough to make the whole effort pointless (the web service will NOT be in the same domain as the web app) I thought I would go the traditional route and use xmlhttprequest. I've used It before in asp.net 1.1 and it worked well. So I copy my working code from a 1.1 app, change the url to point to my Web service, invoke it and get access denied. Why access denied? No doubt it's MS protecting me from myself again. Here's the code: I'm using ?wsdl just to get some xml back for testing. function Button1_onclick() { debugger; var url = 'http://localhost/webServices/ZipCode/ZipCodeService.asmx? wsdl'; // branch for native XMLHttpRequest object if (window.XMLHttpRequest) { req = new XMLHttpRequest(); req.onreadystatechange = onComplete; req.open("POST", url, true); req.send(null); // branch for IE/Windows ActiveX version } else if (window.ActiveXObject) { req = new ActiveXObject("Microsoft.XMLHTTP"); if (req) { req.onreadystatechange = onComplete; req.open("POST", url, true); req.send(); } } } function onComplete(arg,usercontent) { debugger; if (req.readyState == 4) { if (req.status == 200) { // ...processing statements go here... } else { window.status="There was a problem retrieving the XML data:" + req.statusText; } } } Alternately I would love to use ASP.AJAX features to do this the 'right' way, but that 12030 error occurs no matter what I try. I'm
datasets from the sample code to my application running in VS2008 and AJAX 3.5. I think the sample code is in a prior version of AJAX. When I ran my project I used to get Method Error 500 and after 2 http://asp.net.bigresource.com/AJAX-CascadingDropDown-Method-Error-500-1E8Oe0NEv.html days of searching the web could not get a solution. Finally by chance I recreated http://asp.net.bigresource.com/AJAX-CascadingDropDown-ERROR-403-500-12030-E0lwJZitd.html the datasets fresh in my app using the wizard as shown in the video and the error dissapeared and the cascading drop down worked beautifully. View 1 Replies Similar Messages: AJAX :: CascadingDropDown Method Error 500 Jun 13, 2010 I have the method 500 error problem, I have tried to do a simple reproduction of the problem still the same, if I method error run the webservice [URL] it returns the values needed ok (5) in xml format, but the dropdown always return error 500 inside, here are the codes (Using VS2008, NF3.5, Windows 7), I have the whole day trying to solve this but I just can't: [Code]....[Code]....[Code]....[Code]....'WEBCONFIG[Code].... View 4 Replies AJAX :: Method Error 500 CascadingDropDown At Server Jul 8, 2010 I currently facing a cascading drop down list problem. When I develop my website at local pc, everything work method error 500 just fine. However I deploy it to server, I get Method Error 500. View 4 Replies AJAX :: CascadingDropDown - Method Error 500 Only For One DropDown And Service Path Is Correct May 7, 2015 I have 3 table in database1-stateId state1 USA2 UK2-CityId name state1 Canada USA2 London UK3-RegionId regionname cityid1 01 Canada2 02 Londonand I have 3 DropDownList that refer below thread [URL] ...I use cascadingdropdown for these 3 dropdownlist below are codes: AND[WebMethod]public CascadingDropDownNameValue[] GetCountries(string knownCategoryValues){string query = "SELECT state FROM stateTest";List countries = GetData(query);return countries.ToArray();}[Code] ....1-DDLstate2-DDLcity3-DDLregionat first I should select Item from DDLsate then DDlcity and at the end I should select Item from DDLregionabove code work correctly for ddlstate and ddlcity but it doesn't work for ddlregion...I mean when I select Item from ddlcity in ddlregion shows:[Metod error500] View 1 Replies IIS Configuration :: AJAX CascadingDropDown DropDownList - Method Error 500 When Hosted In Server Dec 21, 2013 Regarding this example: [URL] .... it works locally, within VS 2012.But when I publish to a local or remote webserver, it doesn't show an error, but the dropdown lists are populated with this line: [Method Error: 500]. View 1 Replies AJAX :: CascadingDropDown ERROR 403 500 12030 May 19, 2010 I have big problem with the CascadingDropDown. I have 60 CDD with one "Child". So on the page are 60 Parents and 60 Childs. When i use FF3.
i use FF3.5 everything works fine when he is the only Browser which is connected to IIS When i use FF3.0 i get Methode ERROR 403 and 500 When i use IE6 i get Methode ERROR 12030 or 403 or 500 When i use Google Chrome no ERROR no content in the List!? When i use IE8 sometime it works sometime not!? This errors are not shown on every DropDownList (but on most of them!) I played with the "