Thanks so much for the help Polita. I feel like such a dumbass. Apparently I was missing System.Data in my using clause. VS wasn't giving much of a useful error to figuring this out, oh well my mistake!
So now I am in a serialization pickle I think. The following code causes the following exception when the WebService is tested:
MyDomains db = MyDomains.CreateDataContext();
var domains = from dom
in db.Domains
select dom;
return domains;
System.InvalidOperationException: There was an error generating the XML document. ---> System.InvalidOperationException: A circular reference was detected while serializing an object of type Domain.
at System.Xml.Serialization.XmlSerializationWriter.WriteStartElement(String name, String ns, Object o, Boolean writePrefixed, XmlSerializerNamespaces xmlns)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write5_Domain(String n, String ns, Domain o, Boolean isNullable, Boolean needType)
So I've tried returning Domain[] I've tried returning Table<Domain> still get this serialization error.
Perhaps I need to create a datasource in the WebService then return the actual Datasource. But I am not sure if I can serialize datasources or not and then set them dynamically to the GridView via javascript.
You might know since you wrote GridView though :) GridView rocks btw!
synced
Member
132 Points
45 Posts
Re: BLINQ and Atlas
Aug 24, 2006 01:47 PM|LINK
Good morning!
Thanks so much for the help Polita. I feel like such a dumbass. Apparently I was missing System.Data in my using clause. VS wasn't giving much of a useful error to figuring this out, oh well my mistake!
So now I am in a serialization pickle I think. The following code causes the following exception when the WebService is tested:
MyDomains db = MyDomains.CreateDataContext();
var domains = from dom in db.Domains
select dom;
return domains;
System.InvalidOperationException: There was an error generating the XML document. ---> System.InvalidOperationException: A circular reference was detected while serializing an object of type Domain.
at System.Xml.Serialization.XmlSerializationWriter.WriteStartElement(String name, String ns, Object o, Boolean writePrefixed, XmlSerializerNamespaces xmlns)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write5_Domain(String n, String ns, Domain o, Boolean isNullable, Boolean needType)
So I've tried returning Domain[] I've tried returning Table<Domain> still get this serialization error.
Perhaps I need to create a datasource in the WebService then return the actual Datasource. But I am not sure if I can serialize datasources or not and then set them dynamically to the GridView via javascript.
You might know since you wrote GridView though :) GridView rocks btw!