I have an asp.net app which is trying to send mail, unsuccessfully.

I also have a vb.net app (on the same server) which is successfully 
sending mail (using basically the same code).

The code works fine on my dev machine, but when i get it to the 
testing server it fails. Any help would be awesome. The wierd thing 
is that the vb app works fine using the same smtp server, etc.

Thanks,
david

_________________________________

Details are below:
_________________________________

I get the following error from the asp.net app:

The following InnerException reported: 
System.Reflection.TargetInvocationException: Exception has been 
thrown by the target of an invocation. ---> 
System.UnauthorizedAccessException: Access is denied. --- End of 
inner exception stack trace --- at System.RuntimeType.InvokeDispMethod
(String name, BindingFlags invokeAttr, Object target, Object[] args, 
Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at 
System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, 
Binder binder, Object target, Object[] args, ParameterModifier[] 
modifiers, CultureInfo culture, String[] namedParameters) at 
System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String 
methodName, Object[] args)
The following InnerException reported: 
System.UnauthorizedAccessException: Access is denied. 

The folder which the application lives has an overkill of 
permissions, like so:

Domain Admins <modify>
ASP.NET <full>
Everyone <read/execute>
IUSR_ <read/execute>
IWAM_ <modify>
Network <full>
Service <full>

the code is REALLY simplified:

oMailMessage.From = ConfigurationSettings.AppSettings("ADMIN_EMAIL")
oMailMessage.To = txtForgotLogin.Text
oMailMessage.Subject = sSubject
oMailMessage.BodyFormat = MailFormat.Text
oMailMessage.Body = "THIS IS A TEST"    'sEmailText
SmtpMail.SmtpServer.Insert(0, "10.10.10.4")
SmtpMail.Send(oMailMessage)


Server specs are:
Windows 2000 Advaced Server sp4
.NET 1.1











------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to