Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 29th, 2011, 11:53 AM
Authorized User
 
Join Date: Dec 2007
Posts: 26
Thanks: 0
Thanked 1 Time in 1 Post
Default Theme 'Reviews published on this site' cannot be found in the application or global.

Hi team,

I am trying to recreate one of the examples Chapter 7 pag 247. But I got this error. I am a little bit frustrated :( Thanks for any help.
Server Error in '/' Application.

Theme 'Reviews published on this site' cannot be found in the application or global theme directories.

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 'Reviews published on this site' 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 'Reviews published on this site' cannot be found in the application or global theme directories.] System.Web.Compilation.ThemeDirectoryCompiler.GetT hemeBuildResultType(String themeName) +934 System.Web.Compilation.ThemeDirectoryCompiler.GetT hemeBuildResultType(HttpContext context, String themeName) +73 System.Web.UI.Page.InitializeThemes() +8960246 System.Web.UI.Page.PerformPreInit() +38 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +328
 
Old August 29th, 2011, 05:38 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Looks like you're trying to apply a theme (reviews) that doesn't exist. Maybe you had that value in the drop down list and it's now stored in a cookie? If so, try clearing your cookies to see if that fixes it.

Otherwise, can you post the code for the relevant files (master page, it's code behind, the base page and the page you're trying this code on).

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old August 29th, 2011, 05:56 PM
Authorized User
 
Join Date: Dec 2007
Posts: 26
Thanks: 0
Thanked 1 Time in 1 Post
Default Thanks worked

Would you mind to explain a little bit.

Just deleted the cookies as you recommended and worked fine.

I think I have the themes foldere created with the same name as the example provided but It was a little bit weird why was not working.

thanks,
GF
 
Old August 29th, 2011, 06:10 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I don't know why but apparently you once had Reviews as a value in the drop downlist which then ended up in the cookie. This cookie was then used to set the theme in the base page. Since that theme doesn't exist, the code crashes. When you clear the cookie, the site falls back to the default theme set in web.config until you choose a new theme.

Does this help?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old August 30th, 2011, 11:09 AM
Authorized User
 
Join Date: Dec 2007
Posts: 26
Thanks: 0
Thanked 1 Time in 1 Post
Default Thanks

It makes sense.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Allow Admin to set default site theme iguta BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 February 26th, 2010 10:47 AM
Global Theme directory? skijor BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 August 1st, 2009 02:58 AM
Chapter 18: Unable to see the site THEME locochinoloco BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 September 18th, 2008 02:35 AM
Reference not found on published application snufse .NET Framework 2.0 7 February 22nd, 2008 06:15 PM
ERROR: Theme cannot be found ppeessaarr ASP.NET 2.0 Professional 2 July 16th, 2007 09:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.