System.InvalidOperationException: There is already an open DataReader associated with this Command which must be closed first.
at System.Data.SqlClient.SqlInternalConnectionTds.ValidateConnectionForExecute(SqlCommand command)
at System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
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.CompiledQuery.Execute(IProvider provider, Object[] arguments)
at System.Data.Linq.CommonDataServices.DeferredSourceFactory`1.ExecuteKeyQuery(Object[] keyValues)
at System.Data.Linq.CommonDataServices.DeferredSourceFactory`1.Execute(Object instance)
at System.Data.Linq.EntitySet`1.Load()
at System.Data.Linq.EntitySet`1.get_Count()
at CompiledRazorTemplates.Dynamic.adfcfafdfc.Execute()
at RazorEngine.Templating.TemplateBase.Run(ExecuteContext context)
at System.Web.Mvc.HtmlTemplateBase`1.Run(ExecuteContext context)
at CMS.Core.ITemplateExtensions.Run[T](ITemplate template, T Model)
at CMS.Core.ITemplateExtensions.Parse[T](String template, T Model)
javascript:window.open("https://www.facebook.com/sharer.php?u=http%3a%2f%2fauthors.com.bd%2f1362",'Share','toolbar=0,status=0,width=626,height=436')" class="btn btn-sm c-btn-white c-btn-uppercase c-btn-square c-font-grey-3 c-font-white-hover c-bg-red-2-hover c-btn-product">
@{ var db = ERP.Data.DBContext.Current;
var authors = db.Party.Active().Where(p => p.TypeId == 1017 && db.PartyProduct.Any(i => i.PartyId == p.Id));
var books = ERP.Data.DBContext.Current.Product.Active();
}
A National Archive of Information
@ERP.Data.Service.BusinessService.ByType("Publisher").Count()
Publishers
Featuring complete portfolio & virtual showroom of @ERP.Data.Service.BusinessService.ByType("Publisher").Count() active Publishers in Bangladesh.
@authors.Count().ToString("#,###")
Authors
Portfolio of an ever growing list of legends. About @authors.Count().ToString("#,###") Bengali authors & Poets of the past, present & future.
@books.Count().ToString("#,###")
Books
A complete online catalog of Bangla books. From the everlasting classics to modern literature of the future generation.
Error:
Cannot write to a closed TextWriter.