Theme 'xxx' cannot be found in the application or global theme directories. IIS

J

jobs

my asp.net code compiles file and renders the default.aspx page just
fine from F5 in vs.net 2005. (you know with a port)

However, If attempt to call the page from browser I get the error:

Theme 'Theme1' cannot be found in the application or global theme
directories.


i have this in my web config:

<pages styleSheetTheme="Theme1">

Thanks for any help or information.
 
J

Juan T. Llibre

1. Do you have a "Theme1" subdirectory which has the
necessary files under the App_Themes directory of your app ?

2. Are you running this from a subapplication, i.e., a subdirectory of your app root ?

Visual Studio 2005 uses IWebApplication.OpenWebConfiguration to get the
web configuration. Unfortunately, current implementation of this method only
opens the root-level web.config.

If you are working from a subapplication, try placing a copy of Theme1 as a
subdirectory of the App_Themes folder in the subdirectory of the subapplication.

I.O.W., create your App_Themes and Theme1 subdirectories
as subdirectories of your subapplication's directory.




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
 
J

jobs

thanks. yes the issue is web root and I was attempting to call from
another root - hence the issue. I forgot about this and my needing to
create a virtual directory in iis to get to it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top