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

Forums / Set-up & Installation / sflb.ashx extension mapping only works locally

sflb.ashx extension mapping only works locally

5 posts, 0 answered
  1. Meister
    Meister avatar
    262 posts
    Registered:
    09 Nov 2007
    03 Dec 2009
    Link to this post

    I've been through the examples to enable extensionMapping, however its only working locally, as soon as i copy up to a win2003 server with IIS6 it does not work
    it allows me to see the the JPG file in a thumbnail, but when i try to select it, it shows as a broken image

    this is weird as it all works fine locally

    any advice?
    3.6 sp2

     

  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    03 Dec 2009
    Link to this post
    Hi Quade,

    The issue is coming from the fact that IIS 6.0 does not have the .ashx ISAPI handlers mapped. Please see whether you can add these handlers through the IIS 6.0 Manager. If not you can take an alternative approach. First make sure that you have this in the web.config
    <httpHandlers>
        ...
        <add verb="GET" path="*.sflb" type="Telerik.Cms.Engine.ContentHttpHandler, Telerik.Cms.Engine" />
        <add verb="GET" path="*.sflb.ashx" type="Telerik.Cms.Engine.ContentHttpHandler, Telerik.Cms.Engine" />

    Then you can configure the Libraries module to use these extensions instead and restart the website:
    <cmsEngine defaultProvider="Generic_Content">
        <providers>
            <clear />
            <add name="Libraries" allowComments="true" urlRewriteFormat="~/{Provider}/{LibraryName}/[Name].sflb" 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" />

    This should do the trick, however the first approach is the recommended.

    Sincerely yours,
    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.
  3. Meister
    Meister avatar
    262 posts
    Registered:
    09 Nov 2007
    03 Dec 2009
    Link to this post
    Thanks Radoslav

    I dont suppose there is a forum post with information on how to do the IIS thing?


    EDIT:
    Actually, i found it under home tab/config
    however the .ashx extension alrready exists

  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    07 Dec 2009
    Link to this post
    Hi Quade,

    Thank you for getting back to me.

    Did you try the second approach? Did this work on your side? Do you have the .ashx handler methods in the <httpHandlers> section in the web.config?

    Looking forward to your response.

    Best wishes,
    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. Meister
    Meister avatar
    262 posts
    Registered:
    09 Nov 2007
    07 Dec 2009
    Link to this post
    Hi Radoslav
    I gave up in the end and stuck with the original route as i was having lots of issues with it not serving files etc

    thanks anyway
Register for webinar
5 posts, 0 answered