This question is locked. New answers and comments are not allowed.
Hi,
I've been using this trick for the RadComboBox with MVC 1.0 : http://blogs.telerik.com/atanaskorchev/posts/09-04-01/asp_net_mvc_-_passing_json_to_controller_actions_and_populating_controls_on_demand.aspx
Somehow it kept working under MVC 2.0 with framework 3.5 but now it keeps throwing "Ambiguous match found." ever since I moved the application to framework 4.0. Any hint ? :)
I would say that there's more than one "ConvertToType" method...I'll keep looking if I can fix it.
[AmbiguousMatchException: Ambiguous match found.] | |
System.RuntimeType.GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConv, Type[] types, ParameterModifier[] modifiers) +9607924 | |
System.Type.GetMethod(String name) +29 | |
Filters.JsonParamFilterAttribute.OnActionExecuting(ActionExecutingContext filterContext) in C:\Users\Laurent\Documents\Visual Studio 2010\Projects\konnect\Kirranet.Repository.Common\Attributes\JsonParamFilterAttribute.cs:34 | |
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +81 | |
System.Web.Mvc.<>c__DisplayClassf.<InvokeActionMethodWithFilters>b__c() +61 | |
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +436 | |
System.Web.Mvc.<>c__DisplayClassf.<InvokeActionMethodWithFilters>b__c() +61 | |
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +436 | |
System.Web.Mvc.<>c__DisplayClassf.<InvokeActionMethodWithFilters>b__c() +61 | |
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +305 | |
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +830 | |
System.Web.Mvc.Controller.ExecuteCore() +136 | |
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +111 | |
System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +39 | |
System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__4() +65 | |
System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +44 | |
System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +42 | |
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +140 | |
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +54 | |
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +40 | |
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +52 | |
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +38 | |
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8836913 | |
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184 |