Server Error in '/Dev/Ccinv' Application. Sequence contains no elements 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: Sequence contains no elements Source Error: Line 69: where c.Id == id Line 70: select c; Line 71: return q.Single(); Line 72: } Line 73: Source File: e:\inetpub\vhosts\ccinv.be\httpdocs\Dev\Ccinv\App_Code\category.cs Line: 71 Stack Trace: [InvalidOperationException: Sequence contains no elements] System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult) +847 System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries) +113 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) +344 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute(Expression expression) +49 System.Linq.Queryable.Single(IQueryable`1 source) +269 category.GetById(Int32 id) in e:\inetpub\vhosts\ccinv.be\httpdocs\Dev\Ccinv\App_Code\category.cs:71 catalog_catalog_main.BuildRotationBanner() in e:\inetpub\vhosts\ccinv.be\httpdocs\Dev\Ccinv\catalog\catalog_main.aspx.cs:199 catalog_catalog_main.Page_Load(Object sender, EventArgs e) in e:\inetpub\vhosts\ccinv.be\httpdocs\Dev\Ccinv\catalog\catalog_main.aspx.cs:16 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627 Version Information: Microsoft .NET Framework Version:2.0.50727.8000; ASP.NET Version:2.0.50727.8001