NEVER MIND. I found out that a different control on the page was generating an error which caused the overall problem.
--------------------------------------------------------------------------------
I have a simple Hierarchial Grid. It works exactly right when I have this for the datasource:<asp:XmlDataSource ID="XmldsFlightReservedGrid" runat="server"datafile="C:\Work\FlightGrid.xml"XPath="Flights/Flight">asp:XmlDataSource>
However, if I try to store the file name and path in the web.config I get the following error:If I try to open the page in a browser - Server Error in '/' Application.--------------------------------------------------------------------------------Data source of type XmlDataSource is not supported.
And when I am in design viewError Creating Control - XmldsFlightReservedGridProperty accessor 'DataFile' on object 'System.Web.UY.Design.WebControls.XmlDataSourceDesigner' threw the following exception:'Object reference not set to an instance of an object.'
Here are my settings. I am using NetAdvantage 11.1 and .NET framework 4.0<asp:XmlDataSource ID="XmldsFlightReservedGrid" runat="server"datafile="<%$ AppSettings:XMLFlightReservedPath %>" XPath="Flights/Flight">asp:XmlDataSource>
<appSettings> <add key="XMLFlightReservedPath" value="C:\Work\FlightGrid.xml"/>appSettings>
Any help would be greatly appreciated.
Hi Dawson,
Sorry for the late response. If you have any other questions, please feel free to contact me.
I get the same error. Have nothing in web.config. both grid and xmlDataSource are on the page. I see the records in design time. but can not open the page in runtime
Sorry but i see no suggestion or solution in this thread.
thanks in advance