To clarify my problema bit, I am getting the following error running a
method that returns my custom class: "JIT Debugging failed with the
following error: Access is denied.".
All I do is I create my custom object, load it from a database and
serialize it to return a json string back to client-side:
[AjaxPro.AjaxMethod()]
public string AjaxLoadMyClass(int pk)
{
MyClass obj = new MyClass();
obj.Load(pk);
// i suspect a problem lies in the line below
string json = AjaxPro.JavaScriptSerializer.Serialize(myObject);
return json;
}
When I step through the code in the debugger, it freezes when it gets
to the AjaxPro.JavaScriptSerializer.Serialize() method execution...
Do I need to write a converter class for MyClass?
Thanks,
Dima
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at
http://www.ajaxpro.info/
Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
-~----------~----~----~----~------~----~------~--~---