 |
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 26th, 2013, 07:11 PM
|
|
Registered User
|
|
Join Date: Aug 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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!!
|
|

August 26th, 2013, 08:17 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
What does the folder C:\BegASPNETCS\Site\App_Themes contain?
Imar
|
|

August 27th, 2013, 05:18 PM
|
|
Registered User
|
|
Join Date: Aug 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

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

August 27th, 2013, 05:43 PM
|
|
Registered User
|
|
Join Date: Aug 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
ch 14, page 481, Monochrome, web.config
|
|

August 28th, 2013, 01:37 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

October 9th, 2013, 12:28 AM
|
|
|
hanks for your prompt response
|
|

October 9th, 2013, 12:44 AM
|
|
|
hanks for your prompt response
|
|
 |
|