Donal.Burke Report post Posted December 21, 2006 I am trying to work through the BasicDBExample provided with the evaluation download. When I try to run the example I get the get the following error when trying to create an odbc connection: System.InvalidOperationException was unhandled by user code Message="The ConnectionString property has not been initialized." Source="System.Data" StackTrace: at System.Data.Odbc.OdbcConnection.PermissionDemand() at System.Data.Odbc.OdbcConnectionFactory.PermissionDemand(DbConnection outerConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.Odbc.OdbcConnection.Open() at InfoSoftGlobal.DbHelper.Connection(String connectionString) at InfoSoftGlobal.GeneralPages.ASP.NET.DBExample.BasicDBExample.GetFactorySummaryChartHtml() in c:Documents and Settingsburked2My DocumentsVisual Studio 2005WebSitesChartsBasicDBExample.aspx.cs:line 45 at ASP.basicdbexample_aspx.__Renderform1(HtmlTextWriter __w, Control parameterContainer) in c:Documents and Settingsburked2My DocumentsVisual Studio 2005WebSitesChartsBasicDBExample.aspx:line 9 at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) at System.Web.UI.Control.Render(HtmlTextWriter writer) at System.Web.UI.Page.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) Does the "ConnectionStringFactory" need to be initialised somewhere before it is used? Share this post Link to post Share on other sites
Pallav Report post Posted December 21, 2006 Can you make sure that you've copied both the assemblies (DLL) to bin folder? Share this post Link to post Share on other sites
Donal.Burke Report post Posted December 22, 2006 Hi Pallav I only have InfoSoftGlobal.dll in the bin folder. What is the other .dll that is required? And where can I locate it? Thanks, Donal Share this post Link to post Share on other sites
Donal.Burke Report post Posted December 22, 2006 Think I got it now. I needed the Fusion Chart "web.config" file, as the config file that was auto generated by VS does not contain the required settings. Thanks, Donal Share this post Link to post Share on other sites