Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Access is Denied when I try sending email at ASP.net on IIS6

Reply
Thread Tools

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

 
 
Kent
Guest
Posts: n/a
 
      10-27-2003
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
 
Reply With Quote
 
 
 
 
Imtiaz Hussain
Guest
Posts: n/a
 
      10-29-2003
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 www.sysinternals.com 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

 
Reply With Quote
 
 
 
 
Kent
Guest
Posts: n/a
 
      10-31-2003
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

www.sysinternals.com 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
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access Denied error in IE6 when try to access to a IFRAME without src Diego Fernández Santos Javascript 2 02-10-2008 11:38 AM
Access is denied - Win2003, IIS6, VB.NET, WORD COM object royan ASP .Net 6 04-02-2007 02:30 PM
Access is denied - Win2003, IIS6, VB.NET, WORD COM object royan ASP .Net 0 03-27-2007 09:01 PM
403 Forbidden: You were denied access because: Access denied by access control list Southern Kiwi NZ Computing 6 03-19-2006 05:19 AM
Try, Try, Try, again... Rick12N4@netscape.net Computer Support 3 01-29-2005 04:02 PM



Advertisments