Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old August 26th, 2013, 08:11 PM
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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!!
Reply With Quote
  #2 (permalink)  
Old August 26th, 2013, 09:17 PM
Imar's Avatar
Wrox Author
Points: 71,164, Level: 100
Points: 71,164, Level: 100 Points: 71,164, Level: 100 Points: 71,164, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,960
Thanks: 79
Thanked 1,559 Times in 1,536 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!
Reply With Quote
  #3 (permalink)  
Old August 27th, 2013, 06:18 PM
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Reply With Quote
  #4 (permalink)  
Old August 27th, 2013, 06:22 PM
Imar's Avatar
Wrox Author
Points: 71,164, Level: 100
Points: 71,164, Level: 100 Points: 71,164, Level: 100 Points: 71,164, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,960
Thanks: 79
Thanked 1,559 Times in 1,536 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!
Reply With Quote
  #5 (permalink)  
Old August 27th, 2013, 06:43 PM
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Reply With Quote
  #6 (permalink)  
Old August 28th, 2013, 02:37 PM
Imar's Avatar
Wrox Author
Points: 71,164, Level: 100
Points: 71,164, Level: 100 Points: 71,164, Level: 100 Points: 71,164, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,960
Thanks: 79
Thanked 1,559 Times in 1,536 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!
Reply With Quote
  #7 (permalink)  
Old October 9th, 2013, 01:28 AM
winwalk
Guest
 
Posts: n/a
Default

hanks for your prompt response
Reply With Quote
  #8 (permalink)  
Old October 9th, 2013, 01:44 AM
winwalk
Guest
 
Posts: n/a
Default

hanks for your prompt response
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 05: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 01:08 PM
CH.14 - Web Services Example Site Down Dexor BOOK: Beginning iPad Application Development 1 July 5th, 2010 11: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 03:35 PM
App.Config and Web.Config conflict John.Burke ASP.NET 2.0 Professional 5 March 9th, 2010 11:51 AM



All times are GMT -4. The time now is 06:37 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.