I created a new analysis and added information to the Filter Card. I then saved the layout (using XML). When I try to load the XML that I saved previously, I get the following exception:
An exception of type \’GrapeCity.ActiveAnalysis.InvalidLayoutException\’ occurred in GrapeCity.ActiveAnalysis.Web.dll but was not handled in user code
Additional information: DataSource is not specified or invalid.
\”Members can not be excluded due of some restrictions.\”
My data source is set and connected properly. It\’s the exact same data source used to initially create the analysis so I know it works and it\’s the right one. This is essentially what I\’m doing to load the analysis control:
var myDS = new MdxDataSource(); myDS.ConnectionString = \"…\" myDS.Connect(); PivotView1.DataSource = myDS; System.Xml.XmlReader xmlReader = System.Xml.XmlReader.Create(new StringReader(analysisXml)); PivotView1.Read(xmlReader, PersistSettings.Layout | PersistSettings.CardLayout);
Why would I be getting this error?