Access Denied using Impersonation

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

  1. #1

    Default Access Denied using Impersonation

    I am developing an intranet application that uses windows
    authentication and impersonation. The problem I'm having
    is that it seems when the session ends the access token
    is lost (just a guess) and when the user tries to load
    the page again an Access Denied error is generated. Has
    anyone experienced this before and know of a workaround.

    Any help is greatly appreciated. Thank You!

    Ryan
    Ryan Guest

  2. Similar Questions and Discussions

    1. IExtractImage, Impersonation, GDI and "access denied" for non-local admins
      Hi, We're using the IExtractImage interface from behind a .NET web service to generate thumbnails for various files in our network (windows...
    2. EMAB, Impersonation, & Access Denied to Event Log in ASP.NET
      Hi, I am working on an ASP.NET project and wanted to use the Exception Management Application Block to do my error logging. With the ASP.NET...
    3. Access Denied and Impersonation
      Hi, I need to use impersonation in in my ASP.NET applicaiton. But when I set it to "true" in the Web.config file, the "Access Denied" message...
    4. Access denied when creating Access application object
      In an ASP file I am running the following in VBScript in order to extract data from an Access 2002 MDB file which is physically located in the...
    5. Newbie: Access denied error when using impersonation
      I've written a simple web service in which I'm accessing some DLLs. When I run it, I get following error: CS0009: Metadata file...
  3. #2

    Default RE: Access Denied using Impersonation

    If this is a situation where the user is logged on to a domain and you are
    using Windows Integrated Authentication in IIS the session should not
    matter. Even if the session ends, on the next request, the same credentials
    should be passed to the server and used. If you think it is the session, a
    good test would be to lower the timeout to maybe 5 mins and try the same
    steps with that.

    You can find the timeout setting in the web.config file. Another thing you
    could do if you are not sure what user is really trying to access the file
    at the time the error occurs would be to run filemon from
    [url]www.sysinternals.com[/url]. You can look for Access Denieds and it will also list
    the account that is doing the access.

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Hope this helps.
    Holly

    Holly Mazerolle Guest

  4. #3

    Default RE: Access Denied using Impersonation

    I ran Filemon on the server and found that the domain
    user did not have rights for the Inetpub folder. Very
    wierd because the user has rights to the web app under
    Inetpub and can run the application most of the time.
    Just occasionally the user would get an access denied
    error. Anyways, I added the domain user to have
    read/write priveleges to the Inetpub folder and it seems
    to be working. Thank you for you help. By the way, my
    wife's name is Holly also, what a coincedence.

    Thanks,
    Ryan
    >-----Original Message-----
    >If this is a situation where the user is logged on to a
    domain and you are
    >using Windows Integrated Authentication in IIS the
    session should not
    >matter. Even if the session ends, on the next request,
    the same credentials
    >should be passed to the server and used. If you think it
    is the session, a
    >good test would be to lower the timeout to maybe 5 mins
    and try the same
    >steps with that.
    >
    >You can find the timeout setting in the web.config file.
    Another thing you
    >could do if you are not sure what user is really trying
    to access the file
    >at the time the error occurs would be to run filemon
    from
    >[url]www.sysinternals.com[/url]. You can look for Access Denieds
    and it will also list
    >the account that is doing the access.
    >
    >This posting is provided "AS IS" with no warranties, and
    confers no rights.
    >Hope this helps.
    >Holly
    >
    >.
    >
    Ryan Guest

  5. #4

    Default RE: Access Denied using Impersonation

    No problem. :-)

    Holly


    Holly Mazerolle 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