Code Project

Link Unit

Tuesday, March 18, 2008

Method Error : 12030

While I was trying to make this sample work
http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Walkthrough/CCDWithDB.aspx
The following error appeared
1) Method Error 12030
2) Method Error 12031
3) Method Error 500
How I solved it??
1) Specify [System.Web.Script.Services.ScriptService()] before Class defination in Web Service.
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.Web.Script.Services.ScriptService()]
public class CarData : WebService
2) Check the name of method is correct as it is defined in Web Service and specified in Cascadedropdown.
3) Install Fiddler program. http://www.fiddlertool.com/Fiddler2/version.asp . It is an excellent Http Debugger.
Hope this help fellow visitors

3 comments:

Michael said...

The simplest solution :
should check that the files
AutoComplete.asmx and CascadingDropDown.asmx
would be in the same folder as the default.aspx file (in case of this project, see it's Solution Explorer).This is what helped me get rid of this error.

Esha P. Solanki said...

thanks...
you dont need to put .aspx file and .asmx file in same folder...
i was getting error 12030 and i checked the method names and found that i had made stupid spelling mistake.... thanks!

Sigmar said...

Thanks so much for this...

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

I converted from VB.NET to C# using an auto-converter and it wasn't included for some reason.

I really appreciate you posting this, it's stopped me from pulling the rest of my receding hair out :)

Thaks again,
Sigmar