I am having trouble referencing a theme in my ASP.NET project.
I was following a model that allowed for multiple themes. So The theme that
I have is stored in named "Base" under the App_Theme folder that is stored
at the root of my project folder.
It is really the one I want to use for all pages, so I thought I would
reference it in the web.config file:
<pages masterPageFile="~/Masters/SiteTemplate.master"
theme="~/App_Theme/Base/" />
I have tried reference with and without the final slash and with and without
the beginning tilde. I have tried tried referencing the css file named
Default.css.
None of these have worked. What am I doing wrong?
Example error messages:
Error 1 Theme '/App_Theme/Base/Default.css' cannot be found in the
application or global theme directories. D:\Projects\MyAPP\Web.config 14
Error 2 D:\Projects\MyAPP\Default.aspx: ASP.NET runtime error: Theme
'/App_Theme/Base/Default.css' cannot be found in the application or global
theme directories. (D:\Projects\MyAPP\web.config line 14)
D:\Projects\MyAPP\Default.aspx 1 1 D:\Projects\MyAPP\