Server Error in '/' Application.

The ConnectionString property has not been initialized.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The ConnectionString property has not been initialized.

Source Error:


Line 12:             Dim DAdap As OleDbDataAdapter = New OleDbDataAdapter()
Line 13:             DAdap.SelectCommand = New OleDbCommand(sqlSelect, Oleconn)
Line 14:             Oleconn.Open()
Line 15:             DAdap.Fill(Ds)
Line 16:             Oleconn.Close()

Source File: C:\Inetpub\vhosts\enchantedevents4kids.co.uk\httpdocs\App_Code\enchants.vb    Line: 14

Stack Trace:


[InvalidOperationException: The ConnectionString property has not been initialized.]
   System.Data.OleDb.OleDbConnection.PermissionDemand() +1560553
   System.Data.OleDb.OleDbConnectionFactory.PermissionDemand(DbConnection outerConnection) +32
   System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +315
   System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +23
   System.Data.OleDb.OleDbConnection.Open() +53
   enchants.Wfs.QueryTable(String sqlSelect, String Connect) in C:\Inetpub\vhosts\enchantedevents4kids.co.uk\httpdocs\App_Code\enchants.vb:14
   ASP.london_prices_aspx.getContent(String thepage) in C:\Inetpub\vhosts\enchantedevents4kids.co.uk\httpdocs\london-prices.aspx:26
   ASP.london_prices_aspx.Page_Load(Object sender, EventArgs e) in C:\Inetpub\vhosts\enchantedevents4kids.co.uk\httpdocs\london-prices.aspx:18
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4682.0