at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Int32.Parse(String s)
at Lecoati.LeBlender.Extension.Helper.GetTargetContentType()
at Lecoati.LeBlender.Extension.Models.LeBlenderPropertyModel.GetValue[T]()
at Lecoati.LeBlender.Extension.Models.LeBlenderValue.GetValue[T](String propertyAlias)
at Lecoati.LeBlender.Extension.Models.LeBlenderValue.GetValue(String propertyAlias)
at ASP._Page_views_partials_grid_editors_ModuleTitel_cshtml.Execute() in c:\Projects\keystroke\Rovasac website\Web solution\Source\Rovasac\Views\Partials\Grid\Editors\ModuleTitel.cshtml:line 6
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 Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer)
at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)
The backend
The wierd thing is, it is only on some document types, not on all of them.
Item.GetValue("header") Value cannot be null.
Hi,
I created a custom header, with only 1 property, a single textstring. Every time I try to show the values, I get the error: : Value cannot be null.
HTML:
The stacktrace:
The backend
The wierd thing is, it is only on some document types, not on all of them.
Any ideas?
Thanks :)
Hi Bert,
Can you use 'HasValue()' method for checking value before using it ?
Thanks
Hi Alex,
My object does not have a property HasValue,
Is it correct that I inherit from :
Thanks!
Hi Bert,
I think that it because the alias of your property is header and not Header, the alias is camel case.
Hi, I tried this too, but still same issue :(
Hi Bert,
I tried it with exactly the same values but it works fine for me :/
Have you got any more info about your issue, some error within the console? you have this error in front or back?
Hi,
I downloaded the source code and found that this is null:
located in
The possible reason is because I am using a custom controller and the Id is not set.
In my controller I added the ID to HttpContext.Current.Items collection and wrote some extra code in Leblender Extension to retreive this id
Does anyone knows why this ID is null? And who sets it?
Thanks :)
(it works with my changes for now)
is working on a reply...