November Happy Hour will be moved to Thursday December 5th.

Null reference exception creating thumbnail

Vote:
 

Hi Everyone,

EPiServer CMS 8.8.1

Ones a week we get the following exceptions while loading images. The result is broken images on the website. Only a IIS reset resolves it.

System.NullReferenceException: Object reference not set to an instance of an object.
   at EPiServer.Core.ThumbnailManager.CreateBlob(Uri thumbnailUri, Blob blobSource, ImageOperation imgOperation, String mimeType)
   at EPiServer.Core.ThumbnailManager.CreateImageBlob(Blob sourceBlob, String propertyName, ImageDescriptorAttribute descriptorAttribute)
   at EPiServer.Web.Routing.BlobRouter.RoutePartial(IContent content, SegmentContext segmentContext)
   at EPiServer.Web.Routing.Segments.PartialSegment.RouteDataMatch(SegmentContext context)
   at System.Linq.Enumerable.All[TSource](IEnumerable`1 source, Func`2 predicate)
   at EPiServer.Web.Routing.ContentRoute.RouteSegmentContext(SegmentContext segmentContext)
   at EPiServer.Web.Routing.ContentRoute.GetRouteData(HttpContextBase httpContext)
   at System.Web.Routing.RouteCollection.GetRouteData(HttpContextBase httpContext)
   at System.Web.Routing.RouteCollection.GetRouteData(HttpContextBase httpContext)
   at System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Can anyone help me to get rid of these errors? Any help is appreciated.

#144044
Feb 04, 2016 16:54
Vote:
 

Might be a mismatch between images in blobs and entries in database if you didnt backup both at the same time. Looks like its trying to create thumbnail for an image that doesnt exist. I would guess that you copied database to new environment but forgot to move blobfiles from file system at the same time.

#144065
Feb 04, 2016 23:39
Vote:
 

Hi Daniel,

Thanks for the help, i will check this. It seems a little strange because none of the images will get loaded afther this error occurs. Only a IIS reset will fix this issue temporary.

#144076
Feb 05, 2016 9:29
Vote:
 

I'm having the same problem in EPiServer 7.19.

#144350
Feb 11, 2016 11:14
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.