Avatar of RadhaKrishnaKiJaya
RadhaKrishnaKiJaya

asked on 

Theme cannot be found in the application or global theme ...

Hi Experts, I am trying to execute the website from VS2008, local PC, I am getting the above error.  Do you have any idea?  Thanks.
.NET ProgrammingMicrosoft IIS Web ServerASP.NET

Avatar of undefined
Last Comment
RadhaKrishnaKiJaya
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

need a lot more information
Avatar of RadhaKrishnaKiJaya
RadhaKrishnaKiJaya

ASKER

Hello ve3ofa,
Thank you for your reply.  Below is the error message I got when I tried to execute the web site.  Please let me know what else information you need.  I will provide it to you.  Thank you again.

Error Message
-------------------
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Theme 'XXXTheme' cannot be found in the application or global theme directories.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace:


[HttpException (0x80004005): Theme 'XXXTheme' cannot be found in the application or global theme directories.]
   System.Web.Compilation.ThemeDirectoryCompiler.GetThemeBuildResultType(String themeName) +920
   System.Web.Compilation.ThemeDirectoryCompiler.GetThemeBuildResultType(HttpContext context, String themeName) +73
   System.Web.UI.Page.InitializeThemes() +8703011
   System.Web.UI.Page.PerformPreInit() +38
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +282
Avatar of disrupt
disrupt
Flag of United States of America image

looks like you've been trying to switch themes:

copy back your XXXTheme and run your project, then switch themes.
Avatar of RadhaKrishnaKiJaya

ASKER

What is Theme?  Where can I find my XXXTheme?  Where do I need to copy it?  Thank you disrup:.
Avatar of disrupt
disrupt
Flag of United States of America image

check your web.config to see if you have anything that says XXXTheme.

Themes just control the way your pages and controls look.
Avatar of RadhaKrishnaKiJaya

ASKER

I could not find XXXTheme in web.config file.  However it is used in many of my .aspx and .cs files as below, just a sub folder.  Please let me know.

panel.DefaultConfiguredImageURL = "../../App_Themes/XXXTheme/img/Framework/Menu/Blank.gif";
<td><img src="../../App_Themes/XXXTheme/img/Misc/indicator-big.gif" /></td>
Avatar of disrupt
disrupt
Flag of United States of America image

Do you have anything listed under App_Themes in your project? It seems to be referencing a theme, there are many themes out there.  You can set theming to false like so:

http://msdn.microsoft.com/en-us/library/kx3kzht7.aspx

but it may not work in your instance. You either have to find the specific theme that was installed which may be difficult or remove all references towards it.
Avatar of RadhaKrishnaKiJaya

ASKER

I see there are subfolders like img, Images, Styles etc.  Thank you.
Avatar of disrupt
disrupt
Flag of United States of America image

if there are subfolders and the folder XXXTheme does not exist you can try pointing to them and getting rid of the XXXTheme make sure everything is referenced correctly
Avatar of RadhaKrishnaKiJaya

ASKER

The XXXTheme itselef is a subfolder under App_Themes. Below are some examples.  Thank you for your patience.
...\App_Themes\XXXTheme\img\...
...\App_Themes\XXXTheme\Images\...
...\App_Themes\XXXTheme\Skins\...
...\App_Themes\XXXTheme\Styles\...
here it gives some info: http://msdn.microsoft.com/en-us/library/ms247256.aspx

basically If you are testing your Web site using a local IIS Web site, open a command window and run aspnet_regiis -c to install the theme on the server running IIS.
ASKER CERTIFIED SOLUTION
Avatar of RadhaKrishnaKiJaya
RadhaKrishnaKiJaya

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of RadhaKrishnaKiJaya

ASKER

Please read the resolution, which I have already mentioned.
.NET Programming
.NET Programming

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

137K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo