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

Forums / Developing with Sitefinity / Image Library not working

Image Library not working

13 posts, 1 answered
  1. Soren Michelsen
    Soren Michelsen avatar
    12 posts
    Registered:
    13 Jul 2012
    26 Dec 2009
    Link to this post
    I am running Sitefinity 3.7 on a Win7 box.

    Have created site with no problems, but when adding an Image Library, i cant see images that I upload. Not in Edit mode, and not in Browse mode.

    Screenshot attached.

    Any help appreciated.
    Jeppe
    Denmark

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    27 Dec 2009
    Link to this post
    Hello Jeppe Jespersen,

    Please check whether you have added handler mappings in IIS for *.sflb.ashx and *.tmb.ashx paths. Let us know the result.

    Best wishes,
    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. Soren Michelsen
    Soren Michelsen avatar
    12 posts
    Registered:
    13 Jul 2012
    27 Dec 2009
    Link to this post
    I have not.

    I found a description for how to do this in IIS6, but not in IIS7. So kinda stuck there... :-/

    Hoping someone can help :-)

    Jeppe

  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    28 Dec 2009
    Link to this post
    Hello Jeppe Jespersen,

    Can you try the following. Open IIS Manager, go to the virtual directory of your website. Click on Handler Mappings and see whether you have those which Ivan has mentioned. You can refer to attached image.

    Greetings,
    Radoslav Georgiev
    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. Soren Michelsen
    Soren Michelsen avatar
    12 posts
    Registered:
    13 Jul 2012
    28 Dec 2009
    Link to this post
    Hello Radoslav,

    Yes, I do have those handlers mapped on the site's Virtual Directory.
    Still not working.

    -Jeppe
  6. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    28 Dec 2009
    Link to this post
    Hello Jeppe Jespersen,

    Thank you for getting back to us.

    Can you check whether your libraries module is set up like this in your web.config:
    <cmsEngine defaultProvider="Generic_Content">
        <providers>
            <clear/>
                            ...
            <add name="Libraries" urlRewriteFormat="~/{Provider}/{LibraryName}/[Name].sflb.ashx" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_" visible="False" defaultMetaField="Name" applicationName="/Libraries" allowVersioning="False" allowLocalization="False" localizationProviderName="" allowWorkflow="False" securityProviderName="" versioningProviderName="" connectionStringName="GenericContentConnection" type="Telerik.Libraries.Data.DefaultProvider, Telerik.Libraries.Data" tagEditorTemplate="~/Sitefinity/Admin/ControlTemplates/Libraries/BatchTagsEditor.ascx"/>
                            ...
     
    <libraries defaultGenericProvider="Libraries">
        <genericContentProviders>
            <add providerName="Libraries" publicationDateField="Publication_Date"/>
        </genericContentProviders>
        <libraryInfo>
            <add name="Image" title="Image Library" defaultExtenstions=".png, .jpg, .jpeg, .gif" metaKeys="Author, AlternateText, Extension, Name, Height, Width, Size, Category"></add>
            <add name="Document" title="Document Library" defaultExtenstions=".doc, .docx, .rtf, .txt, .pdf, .ppt, .pps, .pptx, .html, .xls, .xlsx" metaKeys="Author, Description, Extension, Name, Size, Category"></add>
            <add name="Custom" title="Custom Library" defaultExtenstions=".*" metaKeys="Author, Description, Extension, Name, Size, Category"></add>
            <add name="Video" title="Video" defaultExtenstions=".wmv" metaKeys="Author, Extension, Name, Size, Category, Description"></add>
        </libraryInfo>
        <extensionMapping defaultExtension=".sflb.ashx">
        </extensionMapping>
    </libraries>


    Kind regards,
    Radoslav Georgiev
    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.
  7. Soren Michelsen
    Soren Michelsen avatar
    12 posts
    Registered:
    13 Jul 2012
    28 Dec 2009
    Link to this post
    Yes, those are present, too.

    -Jeppe
  8. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    28 Dec 2009
    Link to this post
    Hi Jeppe Jespersen,

    Have you set ASPNET as a default caching provider, and are you using Libraries items caching? ASPNET does not have implementation for caching library items, so you can use server side caching in this section with memoryCache only. Please check your web.config file, and let me know if this is the case. 

    Kind regards,
    Georgi
    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.
  9. Soren Michelsen
    Soren Michelsen avatar
    12 posts
    Registered:
    13 Jul 2012
    28 Dec 2009
    Link to this post
    MemoryCache is the default caching provider, and I have not enabled caching for the image library.

    I do not recall doing anything other than simply adding a new Image Library (with default settings) and then showing it in a page.

    Strangely, if I create a brand new site, add an Image Library to that site, and show it in a page, it works fine.

    -Jeppe
  10. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    28 Dec 2009
    Link to this post
    Hi Jeppe Jespersen,

    Please send us your project and settings, we will test it here. There is definitely something wrong in it. By the way, are you using white space in your application name (virtual directory name)? This could also affect the Libraries items.

    Best wishes,
    Georgi
    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.
  11. Soren Michelsen
    Soren Michelsen avatar
    12 posts
    Registered:
    13 Jul 2012
    28 Dec 2009
    Link to this post
    Yes, in fact there is whitespace in my site's name.

    Is there a quick-fix-way to change/raname this, so I can try it real quick?

    -Jeppe
  12. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    28 Dec 2009
    Link to this post
    Hello Jeppe Jespersen,

    You can have a white space in the site name, but not in the virtual directory. The quick fix in this case is to create a new virtual directory without any whitespaces, and simply point it to the physical files of the web site. Then, browse the web site through the new virtual directory.

    All the best,
    Georgi
    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.
    Answered
  13. Soren Michelsen
    Soren Michelsen avatar
    12 posts
    Registered:
    13 Jul 2012
    28 Dec 2009
    Link to this post
    The white space in my Virtual Directory was in fact the problem. Now solved.

    Thank you _again_ for great support!!!!!!!!!!!!!!!!

    -Jeppe
Register for webinar
13 posts, 1 answered