|
Rank: Member Groups: Registered
Joined: 12/22/2011(UTC) Posts: 24 Location: new delhi
|
Hi Jifeng, I got an error when I was trying to create page by adding View to it. Cannot perform runtime binding on a null referencewhat's the reason for this issue? how I can solve this problem?? Following is the log generated: Quote: Event code: 3005 Event message: An unhandled exception has occurred. Event time: 1/25/2012 12:38:25 PM Event time (UTC): 1/25/2012 7:08:25 AM Event ID: 086ce6c0a31145aebc607cc0c02a1541 Event sequence: 838 Event occurrence: 6 Event detail code: 0
Application information: Application domain: /LM/W3SVC/23/ROOT/CMS-5-129719453245485192 Trust level: Medium Application Virtual Path: /CMS Application Path: D:\FinalPublished\24Jan2012Final\CMS\ Machine name: CHETUIWK328
Process information: Process ID: 1928 Process name: w3wp.exe Account name: IIS APPPOOL\ASP.NET v4.0
Exception information: Exception type: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException Exception message: Cannot perform runtime binding on a null reference
Request information: Request URL: http://192.168.12.220:2323/CMS/dev~BookaRestaurantFinal/AboutUs Request path: /CMS/dev~BookaRestaurantFinal/AboutUs User host address: 192.168.12.220 User: admin Is authenticated: True Authentication Type: Forms Thread account name: IIS APPPOOL\ASP.NET v4.0
Thread information: Thread ID: 7 Thread account name: IIS APPPOOL\ASP.NET v4.0 Is impersonating: False Stack trace: at CallSite.Target(Closure , CallSite , Object )
at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
at ASP._Page_Cms_Data_Sites_BookaRestaurantFinal_Templates_Views_AboutUS_template_cshtml.Execute() in d:\FinalPublished\24Jan2012Final\CMS\Cms_Data\Sites\BookaRestaurantFinal\templates\views\AboutUS\template.cshtml:line 2
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance)
at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer)
at Kooboo.CMS.Sites.View.FrontHtmlHelper.RenderViewInternal(HtmlHelper htmlHelper, String viewPath, ViewDataDictionary viewData, Object model)
at Kooboo.CMS.Sites.View.FrontHtmlHelper.RenderView(String viewName, ViewDataDictionary viewData, Boolean executeDataRule)
at Kooboo.CMS.Sites.View.FrontHtmlHelper.RenderView(ViewPosition viewPosition)
at Kooboo.CMS.Sites.View.FrontHtmlHelper.<RenderPositionContents>d__7.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at Kooboo.CMS.Sites.Web.AggregateHtmlString..ctor(IEnumerable`1 htmlStrings)
at Kooboo.CMS.Sites.View.FrontHtmlHelper.Position(String positionID)
at ASP._Page_Cms_Data_Sites_BookaRestaurantFinal_Templates_Layouts_two_column_template_cshtml.Execute() in d:\FinalPublished\24Jan2012Final\CMS\Cms_Data\Sites\BookaRestaurantFinal\templates\layouts\two_column\template.cshtml:line 28
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance)
at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer)
at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
at Kooboo.CMS.Sites.View.FrontViewResult.ExecuteResult(ControllerContext context)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1c.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1c.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)
at System.Web.Mvc.Controller.ExecuteCore()
at Kooboo.CMS.Sites.Controllers.Front.FrontControllerBase.ExecuteCore()
at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext)
at System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext)
at System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<>c__DisplayClassb.<BeginProcessRequest>b__5()
at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass1.<MakeVoidDelegate>b__0()
at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End()
at System.Web.Mvc.MvcHandler.<>c__DisplayClasse.<EndProcessRequest>b__d()
at System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f)
at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action)
at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)
at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Thanks & Regards, Kaustubh Shukla
|