Need help. Having trouble with security on my web service.

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Need help. Having trouble with security on my web service.

    I am getting an access denied 403 error when I try to access my web service.
    My IIS setting is set to use only Windows Authentication.

    The client is calling the web service from a Windows Forms UserControl that
    is embedded into a web page using the <object> tag. When I call up the form
    in the browser, it brings up the Windows logon screen as expected. When I
    complete the logon, the Windows Forms UserControl displays and everything
    works fine. When I try to call my web service, I get an Access Denied
    exception 403.

    I read up on passing credentials to the web service proxy from the client
    and am passing in DefaultCredentials for the Proxy Credentials attribute,
    but I am still getting this error.

    I also set my web.config file to use:

    <authentication mode="Windows" />

    and

    <identity impersonate="true"/>



    If I set my IIS authentication to use anonymous, then the web service call
    works fine.

    What else am I missing here? Why is the windows authentication mode in IIS
    causing the web service to not work?


    --
    -----------------------------------
    Ken Varn
    Senior Software Engineer
    Diebold Inc.

    EmailID = varnk
    Domain = Diebold.com
    -----------------------------------


    Ken Varn Guest

  2. Similar Questions and Discussions

    1. Web service security
      Hello I am new to web services and I have a number of questions. I have read the WSE documentation and various other articles, but I am not sure...
    2. Web Service Trouble
      Hi I am invoking a webservice using CFINVOKE, I have set the return variable to "testvar". But when I use cfdump to display it, it only displays...
    3. Web Service Security?
      I have created a Windows app in C# which makes a call to a dll created in C# and to a Web Service, also created in C#. I have put the exe along...
    4. Trouble setting security for new thread in web app.
      Hello, I have a web app that is being used to restore sql databases. Iam using a new thread to do the sql restores so I can keep theweb page from...
  3. #2

    Default Re: Need help. Having trouble with security on my web service.

    Never mind. I found the problem. The web service directory did not have
    Application installed in IIS. I accidentally removed it when I changed the
    base virtual directory. OOPS!

    --
    -----------------------------------
    Ken Varn
    Senior Software Engineer
    Diebold Inc.

    EmailID = varnk
    Domain = Diebold.com
    -----------------------------------
    "Ken Varn" <nospam> wrote in message
    news:OQ05D5SZEHA.1508@TK2MSFTNGP09.phx.gbl...
    > I am getting an access denied 403 error when I try to access my web
    service.
    > My IIS setting is set to use only Windows Authentication.
    >
    > The client is calling the web service from a Windows Forms UserControl
    that
    > is embedded into a web page using the <object> tag. When I call up the
    form
    > in the browser, it brings up the Windows logon screen as expected. When I
    > complete the logon, the Windows Forms UserControl displays and everything
    > works fine. When I try to call my web service, I get an Access Denied
    > exception 403.
    >
    > I read up on passing credentials to the web service proxy from the client
    > and am passing in DefaultCredentials for the Proxy Credentials attribute,
    > but I am still getting this error.
    >
    > I also set my web.config file to use:
    >
    > <authentication mode="Windows" />
    >
    > and
    >
    > <identity impersonate="true"/>
    >
    >
    >
    > If I set my IIS authentication to use anonymous, then the web service call
    > works fine.
    >
    > What else am I missing here? Why is the windows authentication mode in
    IIS
    > causing the web service to not work?
    >
    >
    > --
    > -----------------------------------
    > Ken Varn
    > Senior Software Engineer
    > Diebold Inc.
    >
    > EmailID = varnk
    > Domain = Diebold.com
    > -----------------------------------
    >
    >

    Ken Varn Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139