looks like you have not created roles. Open your database and verify that you have these three tables:
webpages_UsersInRoles
webpages_Roles
webpages_Membership.
Then verify that they are NOT empty. Finally, open your web.cofig file and verify that Windows Authentication is set to "Enabled".
Member
57 Points
65 Posts
Windows Authentication - User Roles
May 17, 2013 11:48 AM|JT12|LINK
I enabled Windows Authentication for a Web Pages site like explained here: http://www.mikepope.com/blog/AddComment.aspx?blogid=2298
Is it possible to restrict or allow access to certain pages based upon username or user group?
Thanks.
Contributor
2590 Points
2661 Posts
Re: Windows Authentication - User Roles
May 17, 2013 02:07 PM|wavemaster|LINK
Member
57 Points
65 Posts
Re: Windows Authentication - User Roles
May 17, 2013 02:23 PM|JT12|LINK
Thanks for the reply.
When I tried that, I got this message.
To call this method, the "Membership.Provider" property must be an instance of "ExtendedMembershipProvider".
Member
148 Points
349 Posts
Re: Windows Authentication - User Roles
May 17, 2013 04:59 PM|yousaid|LINK
Greetings,
looks like you have not created roles. Open your database and verify that you have these three tables:
webpages_UsersInRoles
webpages_Roles
webpages_Membership.
Then verify that they are NOT empty. Finally, open your web.cofig file and verify that Windows Authentication is set to "Enabled".
Like this:
<authentication>
<windowsAuthentication enabled="true" />
</authentication>
hope this helps
yousaid
Contributor
4946 Points
873 Posts
Re: Windows Authentication - User Roles
May 18, 2013 03:41 AM|GmGregori|LINK
I have no experience with Windows Authentication but maybe this article could help: How To: Use Windows Authentication in ASP.NET 2.0.
Member
57 Points
65 Posts
Re: Windows Authentication - User Roles
Jun 03, 2013 11:36 AM|JT12|LINK
Hi Everyone and thanks for the suggestions. I'm sorry that I took so long to follow up.
Here is what I decided to do with help from this link provided by GmGregori: http://msdn.microsoft.com/en-us/library/ff647405.aspx. It seems to get the job done.
In web.config:
In _PageStart file or in the file of your choosing: