Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio
This is the forum to discuss the Wrox book ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solution by Vincent Varallo; ISBN: 9780470396865
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 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 November 18th, 2009, 09:33 AM
Authorized User
Points: 47, Level: 1
Points: 47, Level: 1 Points: 47, Level: 1 Points: 47, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up DuplicateCheck' is inaccessible due to it's protection level

I am working thru chapter 3. On page 64, I add the IsDuplicate method. This contains a reference to Execute<DuplicateCheck...

When I compile I get this error message
DuplicateCheck' is inaccessible due to it's protection level

I downloaded chtr 3 code.

I added :
DuplicateCheck.cs to the DAL

The two overloads I found in the ENTBaseData.cs
protected static bool IsDuplicate(...

Has anyone else run into this?...and found a fix?
 
Old November 24th, 2009, 05:19 AM
Friend of Wrox
Points: 742, Level: 10
Points: 742, Level: 10 Points: 742, Level: 10 Points: 742, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2009
Location: Tehran, Iran
Posts: 156
Thanks: 13
Thanked 16 Times in 16 Posts
Default check scope words

Hello
I have not encountered this problem because I have followed book's class definitions step by step.
check that your classes are defined as 'public' in your program. if you don't put 'public' keyword in the begining of class definition, then class will be defined as 'private'. if your problem does not solved replace 'internal' keyword with 'public' in the definition of DuplicateCheck class to test that is it accessible after this change.
 
Old November 24th, 2009, 12:17 PM
Authorized User
Points: 47, Level: 1
Points: 47, Level: 1 Points: 47, Level: 1 Points: 47, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up Resolved add the IsDuplicate method

Thanx for your reply..I'm all set .I entered the ISDuplicate method into the ENTUserAccountEO.cs in the BLL...I should have entered it in the ENTUserAccountData.cs in the DAL Framework




Similar Threads
Thread Thread Starter Forum Replies Last Post
DB Protection ~Bean~ SQL Language 4 October 25th, 2005 07:37 AM
Protection evad Excel VBA 0 April 26th, 2005 09:06 AM
Protection and commandButtons bahachin Excel VBA 3 March 4th, 2005 09:27 AM
Protection level noman77 .NET Framework 2.0 0 October 23rd, 2004 07:33 AM
classes :: base class is inaccessible .... Kaliste C# 3 July 16th, 2004 04:56 AM





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