In wed dev 2005/asp.net 2.0...
Using a datatable and csv file as input, I have built an xml doc; loaded the xml doc into a gridview and edited, added and deleted items. Works quite well. But in production, I have load balanced servers, so now that i'm successful with the file, i skip saving as physical file and create a memorystream:
xStream = New MemoryStream()
xOL.Save(xStream)
The stream gets bound with:
Protected Sub gvEditOL_Bind()
Dim xDS As New DataSet
xStream.Flush()
xStream.Position = 0
xDS.ReadXml(xStream)
gvEditOL.DataSource = xDS
gvEditOL.DataBind()
End Sub
When adding, editing or deleting an item, an error is thrown at the line xDS.ReadXML(xStream). However, if the operation is cancelled everything is rebound with no problems. Any ideas why this works for a file, but not a memorystream?
Thanks,
Eric