SecurityAccessDeniedException SQLMembership

ximxaxpr0bl3mx

New Member
Me and a friend implemented SqlMembership in our WCF application and until now everything worked fine. Users are created and roles are added to the user inside the database. Though when we use the following line: \[code\][PrincipalPermission(SecurityAction.Demand, Role = "test")]\[/code\]Something goes wrong.. an SecurityAccessDeniedEception is thrown. The user does have the role so it shouldn't throw this exception.The full solution can be downloaded here: https://www.dropbox.com/s/t12dcyeggxdn62d/auth.rarHopefully someone can help us fix this error!
 
Back
Top