Access denied problem.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jason Zhou

    #1

    Access denied problem.

    Hi All,

    This is my first time to play with web service, but it failed with error
    message like: The request failed with HTTP status 401: Access Denied. What I
    did is very simple: I am using WSE 2.0, I implemented a web method to return
    current system time. Client is a simple C# window aplication to call this
    web service. I guess it's something related to my security setting or
    permission setting, but I have no clue where it is.

    Any help would be appreciated!

    Jason


  • John Jenkins

    #2
    Re: Access denied problem.

    Did you implement the WSE 2.0 correctly?

    "Jason Zhou" <jzhou@apx.co m> wrote in message
    news:e9mS8QIYEH A.2812@TK2MSFTN GP11.phx.gbl...[color=blue]
    > Hi All,
    >
    > This is my first time to play with web service, but it failed with error
    > message like: The request failed with HTTP status 401: Access Denied. What[/color]
    I[color=blue]
    > did is very simple: I am using WSE 2.0, I implemented a web method to[/color]
    return[color=blue]
    > current system time. Client is a simple C# window aplication to call this
    > web service. I guess it's something related to my security setting or
    > permission setting, but I have no clue where it is.
    >
    > Any help would be appreciated!
    >
    > Jason
    >
    >[/color]


    Comment

    • Ben Eaton

      #3
      Re: Access denied problem.

      Hi Jason

      Sounds like an authentication problem. Check the directory security
      settings in IIS match your web.config file settings (i.e. if web.config is
      set to windows authentication then so should IIS).

      If you are using windows authentication then any proxy class calling the
      service needs to include the following line in the constructor:

      me.credentials = system.net.cred entialcache.def aultcredentials

      hth

      ~Ben

      "Jason Zhou" <jzhou@apx.co m> wrote in message
      news:e9mS8QIYEH A.2812@TK2MSFTN GP11.phx.gbl...[color=blue]
      > Hi All,
      >
      > This is my first time to play with web service, but it failed with error
      > message like: The request failed with HTTP status 401: Access Denied. What[/color]
      I[color=blue]
      > did is very simple: I am using WSE 2.0, I implemented a web method to[/color]
      return[color=blue]
      > current system time. Client is a simple C# window aplication to call this
      > web service. I guess it's something related to my security setting or
      > permission setting, but I have no clue where it is.
      >
      > Any help would be appreciated!
      >
      > Jason
      >
      >[/color]


      Comment

      Working...