Aspdotnet-Suresh

aspdotnet-suresh offers C#.net articles and tutorials,csharp dot net,asp.net articles and tutorials,VB.NET Articles,Gridview articles,code examples of asp.net 2.0 /3.5,AJAX,SQL Server Articles,examples of .net technologies

Method error 500/12031 in ajax cascadingdropdown extender | AJAX CascadingDropDown - Method Error 500

Dec 12, 2011
Introduction: 

Here I will explain how to solve the problem “Method error 500/12031 in ajax cascadingdropdown extender using asp.net. 

Description:

In previous post I explained clearly about Ajax cascading dropdownlist sample. Generally during implementation of cascading dropdonlist we will see our dropdowns shows error like “Method error 500 or Method Error 12031”. This error is occurred because of missing following line of code in WebService.

[System.Web.Script.Services.ScriptService()]
After add above line of code to our web service page code would be like this

[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.Web.Script.Services.ScriptService()]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
// [System.Web.Script.Services.ScriptService]
public class CascadingDropdown : System.Web.Services.WebService
{
After add above line of code try to run application it will work for you.

Still if you’re getting same error try to add ValidateRequest="false" in @Page line of web page like <%@ Page ...... ValidateRequest ="false" %>

Happy Coding………

If you enjoyed this post, please support the blog below. It's FREE!

Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email.

subscribe by rss Subscribe by RSS subscribe by email Subscribe by Email

4 comments :

hemalisachdev said...

Hi, I have writen same with all the mention things u say, bt still its gigving error Method Error 500

hiren said...

Still i m getting this error plz give some solution

Anonymous said...

tomra tale baal chero

Anonymous said...

thank i soo much.. with ur help i solved my problem in just 2min

Give your Valuable Comments

Other Related Posts

© 2010-2012 Aspdotnet-Suresh.com. All Rights Reserved.
The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.