I deleted the last entry but now i am going this error. Is there another record in a related table?
Can i disable ths feature as I dont want to this to happen again?
" at System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)\r\n at System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)\r\n at System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)\r\n at System.Data.Linq.Table`1.System.Linq.IQueryProvider.Execute[TResult](Expression expression)\r\n at System.Linq.Queryable.Single[TSource](IQueryable`1 source, Expression`1 predicate)\r\n at DotShoppingCart.Commercial.Core.Block.GetById(Int32 id)\r\n at Controls_Blocks_BlockContainer.AddBlockToContainer(Int32 blockId, Control containerControls, Int32 level) in c:\\BT2\\DotShoppingCartSuiteV2.53\\Web\\Controls\\Blocks\\BlockContainer.ascx.cs:line 445\r\n at Controls_Blocks_BlockContainer.LoadContainerContent() in c:\\BT2\\DotShoppingCartSuiteV2.53\\Web\\Controls\\Blocks\\BlockContainer.ascx.cs:line 329\r\n at Controls_Blocks_BlockContainer.Page_Load(Object sender, EventArgs e) in c:\\BT2\\DotShoppingCartSuiteV2.53\\Web\\Controls\\Blocks\\BlockContainer.ascx.cs:line 107\r\n at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)\r\n at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)\r\n at System.Web.UI.Control.OnLoad(EventArgs e)\r\n at System.Web.UI.Control.LoadRecursive()\r\n at System.Web.UI.Control.LoadRecursive()\r\n at System.Web.UI.Control.LoadRecursive()\r\n at System.Web.UI.Control.LoadRecursive()\r\n at System.Web.UI.Control.LoadRecursive()\r\n at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)"
System.InvalidOperationException was unhandled by user code
Message="Sequence contains no elements"
Source="System.Data.Linq"
StackTrace:
at System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
at System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
at System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
at System.Data.Linq.Table`1.System.Linq.IQueryProvider.Execute[TResult](Expression expression)
at System.Linq.Queryable.Single[TSource](IQueryable`1 source, Expression`1 predicate)
at DotShoppingCart.Commercial.Core.Block.GetById(Int32 id)
at Controls_Blocks_BlockContainer.AddBlockToContainer(Int32 blockId, Control containerControls, Int32 level) in c:\BT2\DotShoppingCartSuiteV2.53\Web\Controls\Blocks\BlockContainer.ascx.cs:line 445
at Controls_Blocks_BlockContainer.LoadContainerContent() in c:\BT2\DotShoppingCartSuiteV2.53\Web\Controls\Blocks\BlockContainer.ascx.cs:line 329
at Controls_Blocks_BlockContainer.Page_Load(Object sender, EventArgs e) in c:\BT2\DotShoppingCartSuiteV2.53\Web\Controls\Blocks\BlockContainer.ascx.cs:line 107
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException:
|