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!!

Hello, nice to meet you

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

10 Comments

  1. 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.

    Reply
  2. 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

    Reply
  3. 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..
    :)bye

    Reply
    • I would agree with that statement – I never had that many configuration issues with any of my hosting providers as GoDaddy. And Again – all the sudden all of my sites are broken, because some-thing got changed on the GoDaddy side and I am getting the theme folder not found error.

      Reply
    • 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.

      Reply
  4. 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.

    Reply
  5. 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.

    Reply

Leave a Reply