Click here to Skip to main content
15,893,381 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
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! :)
Posted

1 solution

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.
 
Share this answer
 
Comments
Ariel Riyo 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900