App_Data Issue
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 ?
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
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\
~/App_Data/Sitefinity/WebsiteTemplates/EloanHomeTemplate/App_Themes/EbrokingRewards/
<
link
href
=
"/Sitefinity/WebsiteTemplates/EloanHomeTemplate/App_Themes/EbrokingRewards/global/upmenu_ie.css"
type
=
"text/css"
rel
=
"stylesheet"
/>