http://bugzilla.novell.com/show_bug.cgi?id=567520
http://bugzilla.novell.com/show_bug.cgi?id=567520#c0 Summary: Web Service returns incorrect JSON object when using ASP.NET AJAX Classification: Mono Product: Mono: Class Libraries Version: 2.6.x Platform: x86 OS/Version: All Status: NEW Severity: Major Priority: P5 - None Component: Sys.Web AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Opera/9.80 (Windows NT 6.1; U; en) Presto/2.2.15 Version/10.10 Any web service which returns serialized JSON object must contain 'd' property which contains service's return object. This is required by ASP.NET AJAX which is included in current mono distribution. This was broken in mono 2.6. In 2.4.3 there was not such problem. Reproducible: Always Steps to Reproduce: 1.Create ASP.NET Web Site project. 2.Add ASP.NET WebService to this web site (for example: MyWebService). 3.Add WebService method which returns some object, for example a String. (String MyMethod()). 4.Add attribute "[System.Web.Script.Services.ScriptService]" to the "MyWebService" class. 5.Add ScriptManager component to .aspx page of asp.net website. 6.Add ScriptManager service reference and set it to "MyWebService" .asmx service file. 7.Add Javascript code to .aspx page, which calls "MyWebService" webservice's method (MyWebService.MyMethod()). 8.Build and run this website using Mono 2.6. You'll get an error: Actual Results: JavaScript returns error: "Line: 4980 Error: Sys.Net.WebServiceFailedException: The server method 'MyMethod' returned invalid data. The 'd' property is missing from the JSON wrapper." Expected Results: No errors happens. -- Configure bugmail: http://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
