Okay, it's a bit hard to explain, but i'll give it a try.
I'm trying to create a master detail scenario in silverlight. The master part, the screen with a datagrid, works fine, it's the detail part that doesn't work. Both master and detail screens use the same webservice, MasterDetail.svc. This returns a Response object. This Response object has column definitions and rows. Each row is a collection of cells, which are objects. I have defined the cells as objects because I want to create a generic solution for displaying data from any databasetable in my database. So when the databasecolumn can be mapped to an int, this results in the webservice to generate an <anytype xsi:type="xsd:int"> for this cell. Same for strings etc. Works perfectly for the master scenario.
In the detail scenario, the same Response object is returned, now with all columns from the current table. The cells collection is filled much like in the master scenario. But in this case it's also possible that the current databasecolumn is a relationship to another table. In the detailscreen, this should become a combobox. To fill this combobox, I need the data in the referenced table in the response object. So what I do is create another Response object, with column definitions and rows, and put this object in the cells collection. This gets serialized as: <anytype xsi:type="Response">. So, a Response object inside a Response object.
I have put a bit of logging inside the webservice, an xmlserializer which writes to a new file on each request. The response gets written to file perfectly each time in both scenarios. But the detail scenario still raises the above exception in the reference.cs unfortunately. I also use Nukhil's web development helper to see what's going on. This logs the master response perfectly, but when the exception in detail mode is raised, this tool also raises an exception, so not much help there.
I appreciate your effort to look into this very much. If you need some logging files or some further explanation just let me know.