Donal.Burke

Working with C# Plotting from database

Recommended Posts

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now