Issue with Umbraco Service - "Nullable object must have value"
Hi,
We're implementing different Umbraco service using ApplicationContext to pull data from Umbraco backend. It always give null in return or gives exception of "Nullable object must have value" while calling the service method itself.
This is might because of NULL in nodeUser column in umbracoNode table. If I update 0 in Database, my service runs fine. But it again sets nodeUser to NULL if I perform save in umbraco backend.
Here is my code :
var contentService = ApplicationContext.Current.Services.ContentService;
var contentTypeService = ApplicationContext.Current.Services.ContentTypeService;
var contentType = contentTypeService.GetContentType("blog");
var contents = contentService.GetContentOfContentType(contentType.Id);
Issue with Umbraco Service - "Nullable object must have value"
Hi,
We're implementing different Umbraco service using ApplicationContext to pull data from Umbraco backend. It always give null in return or gives exception of "Nullable object must have value" while calling the service method itself. This is might because of NULL in nodeUser column in umbracoNode table. If I update 0 in Database, my service runs fine. But it again sets nodeUser to NULL if I perform save in umbraco backend.
Here is my code :
var contentService = ApplicationContext.Current.Services.ContentService;
var contentTypeService = ApplicationContext.Current.Services.ContentTypeService;
var contentType = contentTypeService.GetContentType("blog");
var contents = contentService.GetContentOfContentType(contentType.Id);
Can anyone help me to get out of this??
Thanks in advance.
Upgrading the version of UmbracoCms.Core to the latest resolved the problem!!
is working on a reply...