Wrox Programmer Forums
|
BOOK: Professional ASP.NET 1.0, Special Edition/1.1
This is the forum to discuss the Wrox book Professional ASP.NET 1.1 by Alex Homer, Dave Sussman, Rob Howard, Brian Francis, Karli Watson, Richard Anderson; ISBN: 9780764558900
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 1.0, Special Edition/1.1 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 September 28th, 2003, 07:41 AM
Registered User
 
Join Date: Sep 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Compile error with case study

If I try to compile the case study code from Visual Sudio .NET 2003 I get the following error generated from the stdctrl.cs file:

'IBuyAdventure.UserControl' denotes a 'namespace' where a 'class' was expected.

from the following code:

namespace IBuyAdventure
{

   public class ControlBase : UserControl
   {
      public string getConnStr() {
          string dsn;
          dsn = ConfigurationSettings.AppSettings["connectionString"];
        return dsn;

      }

   }

}

Any ideas why?

Regards
Philippe
 
Old February 27th, 2004, 03:58 AM
Registered User
 
Join Date: Feb 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes,

I have the same problem too and not able to find the answer.

Any expert advice?

Thanks,
Leonard
 
Old May 6th, 2004, 02:51 PM
Registered User
 
Join Date: May 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Would you try to use the system namespace "using System.Configuration" on the top of program line?
Hope can help you!

Terence







Similar Threads
Thread Thread Starter Forum Replies Last Post
Error running CH 19 case study. dw60025 BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 2 April 2nd, 2009 10:18 PM
Ch13 Case Study 2 alecwood BOOK: Beginning Access 2003 VBA 0 October 18th, 2007 05:40 AM
Case Study 1 - VBA 2003 adams77 BOOK: Beginning Access 2003 VBA 2 September 28th, 2005 08:37 PM





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