Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 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 9th, 2007, 08:12 PM
Registered User
 
Join Date: Aug 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Web.Config and Settings

I'm having a little trouble making this work and I think I'm missing something. On page 82 of the book, it shows a SiteSection class -- I haven't found that in the downloaded source files.

I am using the ajax controls in this site which adds more to <configSections> in web.config.

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: An error occurred creating the configuration section handler for airportSite: Could not load type 'TH.AirportSite.AirportSiteSection' from assembly '__code'.

Source Error:


Line 12: </sectionGroup>
Line 13: </sectionGroup>
Line 14: <section name="airportSite" type="TH.AirportSite.AirportSiteSection, __code"/>
Line 15: </configSections>
Line 16:


Source File: C:\Documents and Settings\dave\My Documents\Visual Studio 2005\WebSites\WebAjax\web.config Line: 14

Thanks in advance for any help

DAvid
 
Old August 13th, 2007, 12:59 PM
Registered User
 
Join Date: Aug 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

After loosing some hair, I solved this problem. Here's the answer in case you have the same error.

I had a typo in the ConfigSection.cs file on line 14.
public class AirportSite : ConfigurationSection
needed to be
public class AirportSiteSection : ConfigurationSection






Similar Threads
Thread Thread Starter Forum Replies Last Post
web.config vs. app.config darlo Visual Studio 2005 11 August 20th, 2008 07:23 AM
web.config rrkano .NET Framework 2.0 1 June 23rd, 2008 02:50 PM
Blog - Web.Config Settings for Access Database kanzeon4 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 April 5th, 2008 07:46 AM
Changing Proxy Settings of Web Browser rupinderbhullar .NET Framework 2.0 0 May 7th, 2007 07:30 AM
Web.Config Settings debsoft VS.NET 2002/2003 1 December 11th, 2003 06:06 PM





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