+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Library Image URL Case Sensitive Null Reference Exception

Library Image URL Case Sensitive Null Reference Exception

3 posts, 0 answered
  1. Sam
    Sam avatar
    2 posts
    Registered:
    27 Jun 2012
    07 Apr 2014
    Link to this post

    Hi There,

    We have a site running Sitefinity 6.0 (upgraded from 3.7).  When linking to a library image and using the incorrect case (e.g. MyImage.png vs myimage.png) we get the following exception.  I would assume the URL would not be case sensitive, and if all else, would throw a 404 instead.  Any insight would be much appreciated.

     [NullReferenceException: Object reference not set to an instance of an object.]
     Telerik.Sitefinity.Modules.Libraries.Web.LibrariesEventsFactory.CreateMediaContentDownloadingEvent(MediaContent item, HttpRequest request, String url) +30
       Telerik.Sitefinity.Modules.Libraries.Web.LibraryHttpHandler.ProcessRequest(HttpContext context) +1252
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69

  2. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    29 Nov 2016
    08 Apr 2014
    Link to this post
    Hi Sam,

    Could you please provide us with more information about the error? Where this link is set? Did you get the image through the API? If so, the item /image, news, etc./ title is case sensitive.

    If not the case, can you give some example?

    Regards,
    Svetoslav Manchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Sam
    Sam avatar
    2 posts
    Registered:
    27 Jun 2012
    08 Apr 2014 in reply to Svetoslav Manchev
    Link to this post

    Hi Svetoslav,

    Thanks for the reply.  I created a support ticket and posted the details there.  Ticket #807367

      

    Thank You!

    Sam 

     

3 posts, 0 answered