Lỗi xảy ra ở Module: Banner, View: AdvertingHome, Section: ContentRight
System.NullReferenceException: Object reference not set to an instance of an object.
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)
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)
Thời gian qua, các cấp ủy, tổ chức đảng trong toàn Đảng bộ TP Hạ Long đã tổ chức tốt việc nghiên cứu, quán triệt sâu sắc nghị quyết đại hội đảng các...
Sau hơn 1 năm huyện Hoành Bồ được sáp nhập vào TP Hạ Long theo Nghị quyết của Ủy ban Thường vụ Quốc hội về việc sắp xếp các đơn vị hành chính cấp xã...
Chiều ngày 3/2, nhân kỷ niệm 91 năm ngày thành lập Đảng Cộng sản Việt Nam 03/02(1930-2021), Thành ủy Hạ Long tổ chức lễ công bố quyết định thành lập...
Có dịp gặp gỡ và trò chuyện với đảng viên Trần Việt Thanh (tức Nguyễn Văn Toản), 93 tuổi, là một trong hai đảng viên cao tuổi được trao tặng Huy hiệu...
Chiều 30/1, Đại hội Đại biểu toàn quốc lần thứ XIII của Đảng đã bỏ phiếu bầu Ban Chấp hành Trung ương khóa XIII. Đồng chí Nguyễn Xuân Ký, Bí thư Tỉnh...
Bí thư Đảng ủy Khối các cơ quan TW tâm đắc với những quyết sách lớn mà Tổng Bí thư, Chủ tịch nước Nguyễn Phú Trọng đề cập, các quyết sách này đã khái...