Method Error 500/12031 In Ajax CascadingDropdown

If you are getting Method Error 500 or 12031 In Ajax CascadingDropdown, than you may have missed to include below mentioned line of code in code behind of your asmx (webservice) file

Add this line in webservice's code behind

[System.Web.Script.Services.ScriptService()]

It should look like this

[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.Web.Script.Services.ScriptService()]
public class CascadingDropDown : System.Web.Services.WebService {


It should fix the error
This also occurs if there is any error in your sql statements or webservice code, you need to check them as well

You would also like to read
Implementing Ajax Cascading DropDownList in GridView with databse in ASP.NET

Have fun

Related Posts:
Failed to access IIS metabase error
Blogger - Add dotnetshoutout button to all posts autometically
C#.NET articles - creating online examination system in asp.net using master page and sql server
If you like this post than join us or share

11 comments:

Anonymous said...

Thanks!!


raphaww said...

OMG thanks a lot!


Anonymous said...

Thanks you only solved my problem


lakshmi said...

method error 500 in ajax cascading dropdown i use
[System.Web.Script.Services.ScriptService()]
also i got that error


Anonymous said...

thanks... @Satish


Anonymous said...

That was easy, thank you!


Anonymous said...

Method error 500 still persist..Please help


hemalisachdev said...

Still that error is there Method Error 500 Pls help...


@fadrianamv said...

tnk!!!


Anonymous said...

Thanks it's working


Anonymous said...

still got method 500


Find More Articles