Professional Web Applications Themes

Access is Denied when I try sending email at ASP.net on IIS6 - ASP.NET Security

Hi all, I just migrated my website to the IIS 6.0. Everything is the same and everything is running perfect except I got this error message "access is denied" when i try sending email from the aspx page. The whole message is like this: ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the ...

  1. #1

    Default Access is Denied when I try sending email at ASP.net on IIS6

    Hi all,
    I just migrated my website to the IIS 6.0. Everything is
    the same and everything is running perfect except I got
    this error message "access is denied" when i try sending
    email from the aspx page.
    The whole message is like this:
    ASP.NET is not authorized to access the requested
    resource. Consider granting access rights to the resource
    to the ASP.NET request identity. ASP.NET has a base
    process identity (typically {MACHINE}\ASPNET on IIS 5 or
    Network Service on IIS 6) that is used if the application
    is not impersonating. If the application is impersonating
    via <identity impersonate="true"/>, the identity will be
    the anonymous user (typically IUSR_MACHINENAME) or the
    authenticated request user.

    To grant ASP.NET write access to a file, right-click the
    file in Explorer, choose "Properties" and select the
    Security tab. Click "Add" to add the appropriate user or
    group. Highlight the ASP.NET account, and check the boxes
    for the desired access.

    But i did put the right permissio on, still doesn't work.

    Have you got this before? please advise

    Kent
    Kent Guest

  2. #2

    Default RE: Access is Denied when I try sending email at ASP.net on IIS6

    The difference between IIS 5.0 and 6.0 is that in IIS6.0 the asp.net
    applications are executed by w3wp.exe and by default its identity is
    configured as NETWORK SERVICE. May be this account doesnt have enough
    permissions to send email.

    You can download a tool called Filemon from [url]www.sysinternals.com[/url] and run it
    to see which process is getting the access denied and what is its identity.
    This will also tell you which file access failed.

    Hope this Helps.
    Imtiaz Hussain

    Imtiaz Hussain Guest

  3. #3

    Default RE: Access is Denied when I try sending email at ASP.net on IIS6

    Yeah, with this great tool's help, I fixed this problem.

    So appreciate what the information you gave.

    Kent
    >-----Original Message-----
    >The difference between IIS 5.0 and 6.0 is that in IIS6.0
    the asp.net
    >applications are executed by w3wp.exe and by default its
    identity is
    >configured as NETWORK SERVICE. May be this account
    doesnt have enough
    >permissions to send email.
    >
    >You can download a tool called Filemon from
    [url]www.sysinternals.com[/url] and run it
    >to see which process is getting the access denied and
    what is its identity.
    >This will also tell you which file access failed.
    >
    >Hope this Helps.
    >Imtiaz Hussain
    >
    >.
    >
    Kent Guest

Similar Threads

  1. Access Denied when sending for review
    By abna in forum Macromedia Contribute General Discussion
    Replies: 7
    Last Post: November 10th, 06:58 PM
  2. Access Denied after removing email account
    By rwfan98 in forum Macromedia Contribute Connection Administrtion
    Replies: 0
    Last Post: August 3rd, 02:37 PM
  3. ASP, Access db on IIS6
    By wills in forum ASP Database
    Replies: 3
    Last Post: March 4th, 11:39 PM
  4. Please help with permission denied on IIS6
    By Erik Jensen in forum ASP.NET Security
    Replies: 0
    Last Post: February 19th, 02:26 AM
  5. Sending an Email From Within Access
    By Stacey Richardson in forum Microsoft Access
    Replies: 1
    Last Post: July 18th, 09:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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