p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio (http://p2p.wrox.com/forumdisplay.php?f=477)
-   -   DuplicateCheck' is inaccessible due to it's protection level (http://p2p.wrox.com/showthread.php?t=77074)

stevekeefe@comcast.net November 18th, 2009 09:33 AM

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?

irProject November 24th, 2009 05:19 AM

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.

stevekeefe@comcast.net November 24th, 2009 12:17 PM

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


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

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