Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 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
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 15th, 2006, 01:02 AM
Authorized User
 
Join Date: Sep 2006
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Opinion Polls chapter problem

Ok, I ran the stupid chapter 6 from A to Z. On page 324, we can test the Polls control on the master page. When I try to run the page, I get this incredible annoying error:

It stops on "PollsProvider.cs" file, telling me that it cannot run a null argument on the

static public PollsProvider Instance
        {
            get
            {
                if (_instance == null)
                    _instance = (PollsProvider)Activator.CreateInstance(
                       Type.GetType(Globals.Settings.Polls.ProviderType)) ;
                return _instance;
            }
        }

I run the sample project, it runs fine. But if I run mine (copy and paste) it doesn't. I hate when this book doesn't cover all the coding and leaves you guess what to do. Since the provided code is not segmented on chapters but on the last chapter which you can't rely on the chapter you read.

  #2 (permalink)  
Old December 15th, 2006, 03:23 AM
Authorized User
 
Join Date: May 2006
Location: , , .
Posts: 99
Thanks: 0
Thanked 1 Time in 1 Post
Default

Have you made sure that you added the providerType code for the PollsElement class in ConfigSection.cs? Make sure that you have a providerType too.

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
In the Chapter 6 Opinion Polls mpuisto BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 March 19th, 2007 07:40 PM
Polls.Config is denied. eugz BOOK: ASP.NET Website Programming Problem-Design-Solution 1 November 18th, 2006 08:07 AM
Polls.Config nabeelalkaff BOOK: ASP.NET Website Programming Problem-Design-Solution 4 September 11th, 2006 09:21 PM
Opinion Polls enhancement void BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 July 12th, 2006 10:42 PM
Polls Web Service groupmatch BOOK: ASP.NET Website Programming Problem-Design-Solution 1 October 18th, 2004 08:55 PM



All times are GMT -4. The time now is 08:01 PM.


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