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

Forums / Bugs & Issues / Library Images & Files - Resource cannot be found

Library Images & Files - Resource cannot be found

5 posts, 0 answered
  1. Thomas Harding
    Thomas Harding avatar
    3 posts
    Registered:
    29 Dec 2009
    29 Dec 2009
    Link to this post
    Hi Guys,

    First of all, sorry if this has been asked, solved and repeated before.

    Second of all, I've barely been using SiteFinity for a month. I've seen what it can do and really want to get into it, it's a beautiful application. Additionally, I have zero .net experience, I've been thrown from the php tower into the microsoft pool.

    Right, the problem.

    I've uploaded several images and pdfs into 2 separate libraries. That happens fine, no problem at all.

    However, when I try to view the file on the website (I link to the file using the linking utility on the html editor) I get:

    The resource cannot be found.

    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

    I've extensively searched the forums and on google and not really found anything specific to Library errors.

    I've tried setting up the approval and publish (?) permission things, but alas, no problem.

    Please help me, the only guy in the office who knows about SiteFinity is on his holidays!

    Tom :-)
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    29 Dec 2009
    Link to this post
    Hello Thomas Harding,

    We do not recommend enabling workflow for Images and Documents module, because there you are working with binary data and the when creating staged content your on each Approval status your database will grow very quickly. so, you can try the following

    1. Get the url of the item directly from Images and Documents module, paste it to the browser bar and try to open the image. If you manage to open the image verify the url that is added to your website is the same.

    2. If you cannot open the image you should check whether you have  .sflb.ashx and .tmb.ashx paths added as Hanlder Mappings in IIS.

    3.If you are using caching for Libraries items make sure that you use memoryCache. Please check your web.config file, and let me know if this is the case.

    4. Check whether you have a white space in the item name, library name or in your virtual directory name - this could be a reason for this problem as well.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Thomas Harding
    Thomas Harding avatar
    3 posts
    Registered:
    29 Dec 2009
    29 Dec 2009
    Link to this post
    Hey Ivan,

    Thanks for the swift reply. Hope I'm not disturbing your xmas hols :-)

    Unfortunately your solutions haven't really helped me. But I have learnt a little extra about .net configuration, so at least that's something to dance about!

    Please find my replies numbered against your replies.

    1. The URL of the item

    I copied the link into the browser bar and still got the same error.

    2. If you cannot open the image you should check whether you have  .sflb.ashx and .tmb.ashx paths added as Hanlder Mappings in IIS.

    We (myself and another PHP developer) opened the IIS 6.0 manager and checked the Handler mappings list. Ashx is definitely added to the http handlers extensions list. We also checked the web.config file and found the following line:

    <add verb="GET" path="*.sflb.ashx" type="Telerik.Cms.Engine.ContentHttpHandler, Telerik.Cms.Engine" />

    Which I assume means everything is as it should be.

    3.If you are using caching for Libraries items make sure that you use memoryCache. Please check your web.config file, and let me know if this is the case.

    We checked the config file and found the following tag inside:

    <caching defaultProvider="memoryCache">

    I'm guessing this means everything is in order?

    4. Check whether you have a white space in the item name, library name or in your virtual directory name - this could be a reason for this problem as well.

    A possible issue here. The project is called 'Aerial Platforms No .2', is using spaces and .'s in the name a reason for this happening?

    I'll compile another site and see if the issue occurs there.

    Thanks again mate.

    Thomas

  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    29 Dec 2009
    Link to this post
    Hi Thomas Harding,

    Most probably the problem is in the spaces in your project name 'Aerial Platforms No .2' which should be the problem.

    The reported behavior is not a bug in Sitefinity. You can take a look at our demo - demo.sitefinity.com

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Thomas Harding
    Thomas Harding avatar
    3 posts
    Registered:
    29 Dec 2009
    30 Dec 2009
    Link to this post
    Hi Ivan,

    Yes, exporting the project and renaming it has sorted the problem.

    Thanks for your help and suggestions.

    Have a good new year =)
Register for webinar
5 posts, 0 answered