The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

Circular reference during serializing?

Last post 10-16-2007, 6:51 AM by Mike.Griffin. 20 replies.
Page 2 of 2 (21 items)   < Previous 1 2
Sort Posts: Previous Next
  •  10-01-2007, 8:42 AM 5448 in reply to 5445

    Re: Circular reference during serializing?

    Scott knows way more about Ajax than do I, I'm sure he'll read this and I'll bounce this off him as well, at least we have a clue now as to where the issue is.  Thanx
    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  10-01-2007, 8:55 AM 5449 in reply to 5448

    Re: Circular reference during serializing?

    We use RAD AJAX from Telerik at Venexus so I have not used M$ AJAX. What is the stack trace you get when attempting to deserialize via WebClient with xml. Lets leave the json out of this dicussion at this point until we narrow down what the issue is.

    Regards,

    Scott Schecter
    EntitySpaces | My Site
  •  10-01-2007, 1:34 PM 5466 in reply to 5449

    Re: Circular reference during serializing?

    I've taken JSON out - so we're dealing with the basics. I do have a telerik license by the way but I don't think they support page methods yet. This is the stack as shown via firefox post :

     

    Code:
    {"Message":"A circular reference was detected while serializing an object of type \u0027GoVelvet.Data
    .EntitySpaces.Extensions\u0027.","StackTrace":"   at System.Web.Script.Serialization.JavaScriptSerializer
    .SerializeValueInternal(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse)\r\n   at System
    .Web.Script.Serialization.JavaScriptSerializer.SerializeValue(Object o, StringBuilder sb, Int32 depth
    , Hashtable objectsInUse)\r\n   at System.Web.Script.Serialization.JavaScriptSerializer.SerializeCustomObject
    (Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse)\r\n   at System.Web.Script.Serialization
    .JavaScriptSerializer.SerializeValueInternal(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse
    )\r\n   at System.Web.Script.Serialization.JavaScriptSerializer.SerializeValue(Object o, StringBuilder
     sb, Int32 depth, Hashtable objectsInUse)\r\n   at System.Web.Script.Services.RestHandler.InvokeMethod
    (HttpContext context, WebServiceMethodData methodData, IDictionary`2 rawParams)\r\n   at System.Web.Script
    .Services.RestHandler.ExecuteWebServiceCall(HttpContext context, WebServiceMethodData methodData)","ExceptionType"
    :"System.InvalidOperationException"}

     
  •  10-02-2007, 12:35 PM 5503 in reply to 5466

    Re: Circular reference during serializing?

    Guys, I've tracked this down to the JavaScriptSerializer not being able to serialize your objects. I've emailed you a complete web project that reproduces the error with db included. The test doesn't even need to use web services, it just tries to directly serialize the entity and gets the circular reference error.

     

    thanks

    Craig 

  •  10-15-2007, 7:07 PM 5866 in reply to 5503

    Re: Circular reference during serializing?

    Any update on this, did you see the project I sent?

    thanks 

  •  10-16-2007, 6:51 AM 5873 in reply to 5866

    Re: Circular reference during serializing?

    We are adding hierarchical serialization and proxies that can run on the client side without ES for lightweight implementation, we will debug this issue during that time which will probably occur over the next week or so, sorry for the delay.
    EntitySpaces | Twitter | BLOG | Please honor our Software License
Page 2 of 2 (21 items)   < Previous 1 2
View as RSS news feed in XML