Authorization problem

From: Nikolay Petrov (johntup2_nospam__at_mail.bg)
Date: 10/26/04


Date: Tue, 26 Oct 2004 16:54:41 +0300


    The following code doesn't produse the expected effect to only allow the
members of Administrators group to access the web method, it stops everyone.
=========
    <WebMethod(), _
    PrincipalPermission(SecurityAction.Demand, Role:="Administrators")> _
    Public Function HelloWorld() As String
        Return "Hello World"
    End Function
=========

The web service folder is set to require only Windows Authentication, which
goes fine. I can get the user credentials whitout any problem.

What is wrong?
TIA



Relevant Pages

  • Authorization problem
    ... members of Administrators group to access the web method, it stops everyone. ... Public Function HelloWorld() As String ...
    (microsoft.public.dotnet.languages.vb)
  • Authorization problem
    ... members of Administrators group to access the web method, it stops everyone. ... Public Function HelloWorld() As String ...
    (microsoft.public.dotnet.framework.aspnet)
  • Authorization problem
    ... members of Administrators group to access the web method, it stops everyone. ... Public Function HelloWorld() As String ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Authorization problem
    ... members of Administrators group to access the web method, it stops everyone. ... Public Function HelloWorld() As String ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • How many methods/structures/enums can be exposed?
    ... I have 4 enums, 10 structures and methods exposed via web method ... any other thing stops me creating instance of straucture. ...
    (microsoft.public.dotnet.languages.csharp)