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 8:          Dim ds As DataSet
Line 9:          Dim ds1 As DataSet
Line 10:         ds = gc.GetDataToListBinder("select * from (select *,isnull((Select Count(ProductID) from VWSearch V Where V.CategoryID = C.CategoryID And  ((V.ShowWhenZero='Y' and V.SIH <= 0) or (V.SIH > 0)) and V.ImgCount > 0),0) as ProductCnt from dbo.Category C ) C where ProductCnt>0 ORDER BY OrderID")
Line 11:         Dim CountCat As Integer = ds.Tables(0).Rows.Count
Line 12:         Dim CountSubCat As Integer

Source File: D:\Inetpub\vhosts\thehesperus.com\httpdocs\WUC\FProductCategory.ascx.vb    Line: 10

Stack Trace:


[InvalidOperationException: The ConnectionString property has not been initialized.]
   System.Data.SqlClient.SqlConnection.PermissionDemand() +6356272
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +6342711
   System.Data.SqlClient.SqlConnection.Open() +258
   System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState) +53
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +188
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +573
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +161
   GraficaliClasses.Modules.GetDataToListBinder(Object sql) +173
   WUC_FProduct.BindCategoryTreeView() in D:\Inetpub\vhosts\thehesperus.com\httpdocs\WUC\FProductCategory.ascx.vb:10
   MasterOuterPage.Page_Load(Object sender, EventArgs e) in D:\Inetpub\vhosts\thehesperus.com\httpdocs\MasterOuterPage.master.vb:9
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.9174; ASP.NET Version:2.0.50727.9175