Lỗi xảy ra ở Module: Banner, View: AdvertingHome, Section: ContentRight
System.Data.EntityException: The underlying provider failed on Open. ---> System.InvalidOperationException: The connection was not closed. The connection's current state is connecting.
at System.Data.ProviderBase.DbConnectionClosedConnecting.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure)
--- End of inner exception stack trace ---
at System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure)
at System.Data.EntityClient.EntityConnection.Open()
at System.Data.Objects.ObjectContext.EnsureConnection()
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) in D:\SETUPS\Ha Long\halong\Code\CTS.Web\Areas\Banner\Models\GalleryDL.cs:line 26
at Banner.Models.GalleryBL.GetAdvertisingItemByID(Int32 id, String lang) in D:\SETUPS\Ha Long\halong\Code\CTS.Web\Areas\Banner\Models\GalleryBL.cs:line 19
at Banner.Controllers.BannerController.AdvertingHome() in D:\SETUPS\Ha Long\halong\Code\CTS.Web\Areas\Banner\Controllers\BannerController.cs:line 39
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.<>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)
Ngày 20/5, Thường trực Thành ủy tổ chức Hội nghị giao ban công tác Nội chính, phòng chống tham nhũng tháng 5/2021, triển khai nhiệm vụ tháng 6/2021....
Sáng 20/5, Ban chỉ đạo bầu cử, Ủy ban bầu cử thành phố tổ chức hội nghị triển khai công tác bầu cử đại biểu Quốc hội và đại biểu HĐND các cấp nhiệm kỳ...
Hôm nay, toàn Đảng, toàn dân, toàn quân ta kỷ niệm 131 năm Ngày sinh Chủ tịch Hồ Chí Minh kính yêu với tấm lòng biết ơn vô hạn. Người là lãnh tụ thiên...
Quảng Ninh một thời từng được mặc định là vùng đất của công nghiệp mỏ, gắn liền với bụi than, khói và nhịp sống hối hả của bao lớp thợ cần lao. Dưới...
Ngày 18/5, Hội đồng bầu cử Quốc gia tổ chức hội nghị trực tuyến toàn quốc sơ kết công tác bầu cử ĐBQH khóa XV và đại biểu HĐND tỉnh các cấp nhiệm kỳ...
Ngày 18/05, các đồng chí: Vũ Văn Diện, Ủy viên BTV Tỉnh ủy, Bí thư Thành ủy Hạ Long; Phạm Lê Hưng, Phó Bí thư Thành ủy; Nguyễn Ngọc Sơn, Phó Chủ tịch...
Nhân dịp Tháng Công nhân, ngày 17/5, đồng chí Phạm Lê Hưng, Phó Bí thư Thành ủy đã đến thăm, động viên và tặng quà cán bộ, nhân viên Công ty CP Quốc...