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

August 29th, 2011, 11:53 AM
|
|
Authorized User
|
|
Join Date: Dec 2007
Posts: 26
Thanks: 0
Thanked 1 Time in 1 Post
|
|
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
|
|

August 29th, 2011, 05:38 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

August 29th, 2011, 05:56 PM
|
|
Authorized User
|
|
Join Date: Dec 2007
Posts: 26
Thanks: 0
Thanked 1 Time in 1 Post
|
|
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
|
|

August 29th, 2011, 06:10 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

August 30th, 2011, 11:09 AM
|
|
Authorized User
|
|
Join Date: Dec 2007
Posts: 26
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Thanks
It makes sense.
|
|
 |
|