Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
Hello guys. Good DAY!
 
Im working on the authorization of our project. And I've found resource and how to make it function and did what does the instruction says but when i run it it says
"Parser Error Message: Cannot create an abstract class." at this part:
 
<add name="AccessRoleProvider" type="AccessProvider.AccessRoleProvider" connectionStringName="TrainingPlanConnectionString"/>
 
But when i check it if i added correctly the function it is correct. how to solve this? please help. i really need this to get work. thank you in advance for your answers. im looking forward to it.
 
God Bless and More Power! Smile | :)
Posted 21-Feb-12 16:13pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Addition is not an issue; but you can't instantiate an abstract class.
 
Make a new class that inherits your abstract class and use that one. It will work.
  Permalink  
Comments
Ariel Riyo at 21-Feb-12 23:03pm
   
hey thank you very much. Now i see! but does "MustInherit" affect that? i got another error.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 404
1 Nirav Prabtani 389
2 Abhinav S 210
3 PIEBALDconsult 160
4 Dave Kreskowiak 155
0 OriginalGriff 7,580
1 Sergey Alexandrovich Kryukov 6,806
2 Maciej Los 3,919
3 Peter Leow 3,693
4 CHill60 2,742


Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 21 Feb 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100