Wrox Programmer Forums
|
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 26th, 2013, 07:11 PM
Registered User
 
Join Date: Aug 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default ch 14, 481, Monochrome, web.config

Hi Imar,
Kindly help me fix this problem:

Chapter 14
TRY IT OUT. 1, Page 481

(1) When I want to view the page in the browser, it shows the error below:

Server Error in '/Site' 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 'Monochrome' cannot be found in the application or global theme directories.

Source Error:

Line 10: </connectionStrings>
Line 11: <system.web>
Line 12: <pages theme="Monochrome">
Line 13: <controls>
Line 14: <add tagPrefix="Wrox" tagName="Banner" src="~/Controls/Banner.ascx" />

Source File: C:\BegASPNETCS\Site\web.config Line: 12
________________________________________
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.2012

(2) In the Reviews folder, the first line of codes (<%@ Page Title="All Reviews" Language="C#" MasterPageFile="~/MasterPages/Management.master" AutoEventWireup="true" CodeFile="All.aspx.cs" Inherits="Reviews_All" %>) in each of the pages shows a wavy blue line. When you the cursor on it, it says the following:

C:\BegASPNETCS\Site\Reviews\All.aspx:ASPNET runtime error: Theme ‘Monochrome’ cannot be found in the application or global theme directories. (C:\BegASPNETCS\Site\web.config line 12).

Please help me fix this problem!!
 
Old August 26th, 2013, 08:17 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,

What does the folder C:\BegASPNETCS\Site\App_Themes contain?

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 27th, 2013, 05:18 PM
Registered User
 
Join Date: Aug 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default ch 14, page 481, Monochrome, web.config

Hi Imar,

The folder C:\BegASPNETCS\Site\App_Themes contains the following folders:
a. DarkGrey folder
b. Monochrome folder.

In DarkGrey folder are the following:
1. Images folder
2. DarkGrey.css

In the Images folder are the following images:
1. Header.jpg
2. PleaseWait.gif

The Monochrome folder contains the ff items:
1. Images folder
2. Button.skin
3. Monochrome.css

In the Images folder are the ff images:
1. Header.jpg
2. MenuBackground.jpg
3. PleaseWait.gif
4. Sidebar.jpg.

I hope this answers your question.
Thanks for your prompt response.

Paso
 
Old August 27th, 2013, 05:22 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

That's odd as it seems the theme folder does indeed exist. What's the address in the browser's address bar? Is it something like http://localhost:12345/Default.aspx?

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 27th, 2013, 05:43 PM
Registered User
 
Join Date: Aug 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default ch 14, page 481, Monochrome, web.config

Hi Imar,

This is what it is: http://localhost:50147/Site/Reviews/All.aspx

Thanks.
Paso
 
Old August 28th, 2013, 01:37 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

It's weird that you're getting this error only now when adding EF, as that should be completely unrelated to themes.

Have you tried setting the virtual path to / as explained in the exercise on page 242 and further?

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 October 9th, 2013, 12:28 AM
winwalk
Guest
 
Posts: n/a
Default

hanks for your prompt response
 
Old October 9th, 2013, 12:44 AM
winwalk
Guest
 
Posts: n/a
Default

hanks for your prompt response





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch 9-Sending Email-Encrytping web.config btcomp BOOK: Beginning ASP.NET 4 : in C# and VB 3 August 28th, 2010 04:37 PM
Chapter 14-Photo Album Pages Monochrome vs Dark Grey jlransford BOOK: Beginning ASP.NET 4 : in C# and VB 3 August 3rd, 2010 12:08 PM
CH.14 - Web Services Example Site Down Dexor BOOK: Beginning iPad Application Development 1 July 5th, 2010 10:11 PM
Chapter 14:Page 481 try it out lstew452 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 4 June 20th, 2010 02:35 PM
App.Config and Web.Config conflict John.Burke ASP.NET 2.0 Professional 5 March 9th, 2010 11:51 AM





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