Server Error in '/' Application.

Cannot perform runtime binding on a null reference

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot perform runtime binding on a null reference

Source Error:


Line 4:      var UrlRoot = System.Configuration.ConfigurationManager.AppSettings["UrlRoot"];
Line 5:  
Line 6:      ViewBag.Title = ViewBag.Tag.MetaTitle ?? ViewBag.Tag.TagName;
Line 7:      ViewBag.Description = ViewBag.Tag.MetaDescription ?? "Check in Vietnam là hệ thống trang tin về du lịch, ẩm thực Việt Nam và nước ngoài, thường xuyên cập nhật các tin tức mới nhất về kinh nghiệm du lịch, địa điểm du lịch mới và hot nhất, các địa chỉ ăn ngon, công thức nấu ăn tại nhà, trang trí nhà cửa, tin tức giải trí,...";
Line 8:      ViewBag.Keywords = "Kinh nghiệm du lịch, địa điểm du lịch, địa chỉ ăn ngon, công thức nấu ăn, trang trí nhà cửa, tin tức giải trí, người nổi tiếng, món ăn, tin tức du lịch";

Source File: e:\Websites\checkinvietnam\home\Views\Home\TagPage.cshtml    Line: 6

Stack Trace:


[RuntimeBinderException: Cannot perform runtime binding on a null reference]
   CallSite.Target(Closure , CallSite , Object ) +200
   System.Dynamic.UpdateDelegates.UpdateAndExecute1(CallSite site, T0 arg0) +924
   CallSite.Target(Closure , CallSite , Object ) +221
   ASP._Page_Views_Home_TagPage_cshtml.Execute() in e:\Websites\checkinvietnam\home\Views\Home\TagPage.cshtml:6
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +126
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +143
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +110
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +380
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +109
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +890
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +97
   System.Web.Mvc.Async.<>c__DisplayClass3_1.<BeginInvokeAction>b__1(IAsyncResult asyncResult) +241
   System.Web.Mvc.<>c.<BeginExecuteCore>b__152_1(IAsyncResult asyncResult, ExecuteCoreState innerState) +27
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +111
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +74
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +19
   System.Web.Mvc.<>c.<BeginProcessRequest>b__20_1(IAsyncResult asyncResult, ProcessRequestState innerState) +48
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +111
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34009