I am using MVC 3 in Visual Studio 2012, I have set up roles so I can authenticate access to different parts of the website. Works wonderfully on my PC. My connection string is to the live server only, so my membership is complete stored on my host's SQL
Server 2008 installation and all of the roles up date on there when I mess about with ASP.NET Configuration. But when my application goes live to the server, it's as though those assigned to a role aren't assigned anymore.
I am using
[Authorize(Roles = "Admin")]
Above views methods inside of my controllers where I want to restrict access.
I have checked web.config and it seems to be fine:
<membership>
<providers>
<clear />
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePass ...
Go to the complete details ...