Theme cannot be found in the application or global theme directories

I was creating an application and everything was working fine. But when i uploaded the website on the server the following exception loaded…

Theme ‘Default’ cannot be found in the application or global theme directories

There are two ways to solve this problem:

1. Check that you have a sub directory named ‘Default’ (or the theme name you chose) and the necessary files in the App_Themes directory.

2. If you are running this website/web project from a sub application or sub directory in the wwwroot, check that the folder is set as ‘Application’

(in IIS find the folder where the website resides, right click, select properties and check that the Create Application button is disabled. If not click it to set the website as application).

Happy Programming!!


10 thoughts on “Theme cannot be found in the application or global theme directories

  1. Dan Bader says:

    Thanks !! How simple. I can’t tell you how long I have been looking for this one.. Or should I say, the one that worked.

  2. Nadeem says:

    Hi, This is Nadeem

    I am also facing the same problem having window 2003 with sp 2 and iis 6.

    My web application is running well in win xp and but when depoying in win 2003, its giving some error like theme folder ‘Blue’ Not found and even one class file under app_code is also not availble.

    Please let me update, wether have you got solution or not ? I kept the theme setting in web.config file..

    <pages buffer=”true” theme=”Blue”…

    This Blue folder is existing in App_themes and we are not using any sub website or other sub folder for aspx. file. and In folder, we kept the datalibrary.vb class file. But none is available at runtime. And most interesting thing is that while we running the same application thru vstudio2005,it running fine but from browser thru IIS, it giving such problems.

    Please advice if you have some solution.

    Thanking You

  3. Faez Furruq says:

    Thank you so much, I searching on web since few days to resolve this error until I found this Forum. This page solved my problem.Even the Godaddy team was unable to trobleshoot to this concern.

    Godaddy is the worst web hosting and domain company.

    ciappara Thanks again..

    • ciappara says:

      Instead of the folder named ‘Default’, in this case it might be that the folder not found must be named ‘Blue’. Follow the steps above and instead always name the folder ‘Blue’ instead of ‘Default’ when needed.

  4. Juan Carlos says:

    I fixed my problem creating a virtual directory for that sub-application pointing to that app_themes folder, like if that folder existed in the sub application.

  5. dinesh says:

    Server Error in Application.
    Configuration Error
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Theme ‘Theme’ cannot be found in the application or global theme directories.

    Source Error:Line 21:
    Line 22:
    Line 23:
    Line 24:
    Line 25:

    i had a error message like this can anyone help me on this.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s