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

Forums / Designing & Styling / App_Data Issue

App_Data Issue

3 posts, 1 answered
  1. yang
    yang avatar
    9 posts
    Registered:
    28 Mar 2011
    29 Sep 2011
    Link to this post
    Hi all,

    I create a new Site with  SF 4.2.
    1,Create a new master and register it  successfully.
    2,Create a new theme and the folder structure.
    3,Create a new page use the master with the theme.

    the problem is  that the page displayed look like not use a theme.
    1, check the pase source , and i find  the page has the correct reference .
    2, click  F12  , the theme  style file  was Forbidden  with  a  403 error.

    i think the App_data folder  is a special folder   only  visited  on the server. so it will be not   download to the client end.

    but the themes have to  drop in the Special  Folder Structure .
    http://www.sitefinity.com/documentation/designers-guide/website-templates-file-structure.aspx
    what can i do ?

  2. Jen Peleva
    Jen Peleva avatar
    568 posts
    Registered:
    10 Nov 2016
    30 Sep 2011
    Link to this post
    Hi Yang,

    Thank you for contacting Telerik Support.

    First of all, make sure you registered your theme correctly in the Administration section of Sitefinity. Go to Administration -> Settings -> Advanced -> Appearance -> Frontend Themes (~/App_Data/Sitefinity/WebsiteTemplates/testTheme/App_Themes/original/). The 403 exception may have occurred, because you tried to link directly to resources in the App_Data folder, which is not possible, since this folder has special permissions.
    If that's not it, try renaming your stylesheet to main.css. Sitefinity should load it automatically.
    You could also try to move your theme outside the App_Data file and see if you can load it.

    Let me know whether the proposed solutions help.

    Kind regards,
    Zheyna Peleva
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
    Answered
  3. yang
    yang avatar
    9 posts
    Registered:
    28 Mar 2011
    08 Oct 2011
    Link to this post
    Thanks for your response, this solution is success.
    the problem is :
    i use the path when i register the theme :
    ~\App_Data\Sitefinity\WebsiteTemplates\EloanHomeTemplate\App_Themes\EbrokingRewards\

    but the path should be like as :
    ~/App_Data/Sitefinity/WebsiteTemplates/EloanHomeTemplate/App_Themes/EbrokingRewards/

    and the css link  of   html source  is appearance as bellowing:
    <link href="/Sitefinity/WebsiteTemplates/EloanHomeTemplate/App_Themes/EbrokingRewards/global/upmenu_ie.css" type="text/css" rel="stylesheet" />

    not in the App_Data  ,and work well.

    thanks a lot again.






3 posts, 1 answered