Lỗi xảy ra ở Module: Banner, View: AdvertingHome, Section: ContentRight
System.Data.EntityCommandExecutionException: An error occurred while executing the command definition. See the inner exception for details. ---> System.InvalidOperationException: ExecuteReader requires an open and available Connection. The connection's current state is open.
at System.Data.SqlClient.SqlConnection.GetOpenConnection(String method)
at System.Data.SqlClient.SqlConnection.ValidateConnectionForExecute(String method, 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.EntityClient.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior)
--- End of inner exception stack trace ---
at System.Data.EntityClient.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior)
at System.Data.Objects.Internal.ObjectQueryExecutionPlan.Execute[TResultType](ObjectContext context, ObjectParameterCollection parameterValues)
at System.Data.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)
at System.Data.Objects.ObjectQuery`1.System.Collections.Generic.IEnumerable.GetEnumerator()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Banner.Models.GalleryDL.GetAdvertisingItemByID(Int32 id, String lang)
at Banner.Models.GalleryBL.GetAdvertisingItemByID(Int32 id, String lang)
at Banner.Controllers.BannerController.AdvertingHome()
at lambda_method(Closure , ControllerBase , Object[] )
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass42.b__41()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<>c__DisplayClass39.b__33()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.b__49()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<>c__DisplayClass2a.b__20()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.b__22(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult)
at System.Web.Mvc.Controller.<>c__DisplayClass1d.b__18(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.b__3(IAsyncResult ar)
at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.b__3(IAsyncResult ar)
at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult)
at System.Web.Mvc.MvcHandler.<>c__DisplayClass8.b__3(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.b__3(IAsyncResult ar)
at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)
at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.<>c__DisplayClass4.b__3()
at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.Wrap[TResult](Func`1 func)
at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)
Liên kết website
Tuyên truyền bầu cử Đại biểu Quốc Hội và Đại biểu HĐND các cấp
Hôm nay, ngày 22-5, cùng với hàng triệu cử tri trong cả nước, hơn 84 nghìn cử tri của thành phố sẽ đi bỏ phiếu, gửi gắm niềm tin vào những người mình...
Nhằm đảm bảo an toàn tuyệt đối công tác phòng cháy và chữa cháy trong suốt thời gian diễn ra cuộc bầu cử đại biểu quốc hội và HĐND các cấp, Phòng CS...
Ngày mai, 22-5, hơn 84.200 cử tri của TP Uông Bí cùng với hàng triệu cử tri cả nước sẽ thực hiện quyền, nghĩa vụ công dân, cầm lá phiếu bầu chọn đại...
Đến thời điểm này, chỉ trước ngày bầu cử 22-5 chưa đầy 2 ngày, mọi công tác chuẩn bị cho cuộc bầu cử Đại biểu Quốc hội khóa XIV và HĐND các cấp nhiệm...
Tối 19-5, tại phường Phương Đông, Cụm đoàn số 2, Thành Đoàn Uông Bí tổ chức chương trình Giao lưu văn nghệ kỷ niệm 126 năm ngày sinh Chủ tịch Hồ Chí...
Những ngày này đi trên dọc các tuyến đường, tuyến phố, hay các ngõ nhỏ của thành phố, điều dễ nhận thấy nhất là gam màu đỏ tươi, rực rỡ của những lá...
Sáng 18-5, đoàn công tác của Ủy ban Trung ương MTTQ Việt Nam do Phó Chủ tịch Ủy ban TW mặt trận Tổ quốc Việt Nam Nguyễn Văn Pha dẫn đầu đã có buổi làm...
Nhờ làm tốt công tác nắm tình hình, chủ động triển khai các kế hoạch đảm bảo ANTT phục vụ Cuộc bầu cử Đại biểu Quốc hội và HĐND các cấp, cho đến thời...