https://bugzilla.novell.com/show_bug.cgi?id=669786
https://bugzilla.novell.com/show_bug.cgi?id=669786#c0 Summary: Can't use JavaScriptSerializer Classification: Mono Product: Mono: Class Libraries Version: 2.10.x Platform: x86 OS/Version: Mac OS X 10.6 Status: NEW Severity: Normal Priority: P5 - None Component: Sys.Web AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- If you try to use Ajax.BeginForm(), client-side validation (<% Html.EnableClientValidation(); %>), or anything else that uses the JavaScriptSerializer type you get the following exception. This works find in 2.8.x [System.TypeInitializationException]: An exception was thrown by the type initializer for System.Web.Script.Serialization.JavaScriptSerializer at System.Web.Mvc.JsonResult.ExecuteResult (System.Web.Mvc.ControllerContext context) [0x000a2] in /private/tmp/monobuild/build/BUILD/mono-2.10/mcs/class/System.Web.Mvc2/System.Web.Mvc/JsonResult.cs:67 at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult (System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ActionResult actionResult) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10/mcs/class/System.Web.Mvc2/System.Web.Mvc/ControllerActionInvoker.cs:243 at System.Web.Mvc.ControllerActionInvoker+<InvokeActionResultWithFilters>c__AnonStorey38.<>m__47 () [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10/mcs/class/System.Web.Mvc2/System.Web.Mvc/ControllerActionInvoker.cs:281 at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter (IResultFilter filter, System.Web.Mvc.ResultExecutingContext preContext, System.Func`1 continuation) [0x00025] in /private/tmp/monobuild/build/BUILD/mono-2.10/mcs/class/System.Web.Mvc2/System.Web.Mvc/ControllerActionInvoker.cs:255 [System.InvalidCastException]: Cannot cast from source type to destination type. at System.Web.Script.Serialization.JavaScriptSerializer..ctor (System.Web.Script.Serialization.JavaScriptTypeResolver resolver, Boolean registerConverters) [0x0000d] in /private/tmp/monobuild/build/BUILD/mono-2.10/mcs/class/System.Web.Extensions/System.Web.Script.Serialization/JavaScriptSerializer.cs:66 at System.Web.Script.Serialization.JavaScriptSerializer..cctor () [0x00000] in <filename unknown>:0 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
