System.ArgumentNullException: Value cannot be null.
Parameter name: writer
at System.Web.Mvc.HtmlTemplateBase`1.WriteTo(TextWriter writer, Object value)
at RazorEngine.Templating.TemplateBase.Write(Object value)
at CompiledRazorTemplates.Dynamic.bdcecccbdced.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)

Popular Authors

@{ var db = ERP.Data.DBContext.Current; var authors = db.Party.Active().Where(p => p.TypeId == 1017 && db.PartyProduct.Any(i => i.PartyId == p.Id));} @foreach (var item in authors.OrderByDescending(i => i.RelatedProducts.Count(j => j.TypeId == 1012)).Take(9).Skip(1)) { }
Error:
Value cannot be null.
Parameter name: writer
@{ 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:
Value cannot be null.
Parameter name: writer