Ask a Question related to ASP.NET Security, Design and Development.
-
Damien #1
ASPNET user and CDO
Hi all,
I have a problem in and around the ASPNET user and CDO, my code is as
follows
using System;
using System.Web.Mail;
MailMessage mm = new MailMessage();
//set the properties
mm.To = "dum.dumb@dumb.com";
mm.Subject = "subject - test";
mm.Body = "message - test";
mm.From = "dum.dumb@dumb.com";
SmtpMail.Send(mm);
If I round this code from a test harness it works fine but I fire it from an
ASP.NET application I get the following error
Message : Could not access 'CDO.Message' object.
Source : System.Web
Inner Ex : Exception has been thrown by the target of an invocation.
which lead me to believe that this was a permissions error, so I added the
ASPNET user to the administrators group to narrow down possibilities and
this allowed the application to mail away tills its hearts content
unfortunately my customer would not be happy (r they ever) with the ASPNET
user having admin rights.
Does anyone have an idea of what specifically the ASPNET user needs to
access the CDO class.
I have used this functionality before with no trouble but the whole company
has just recently updated windows 2000 to service pack 4
Cheers D
Damien Guest
-
Web Service uses ASPNET user although changed to administrator user in IIS
Hi My problem is this In the Website (of my webservice) in the IIS, I've changed the ASPNET user in the Directory Security to administrator user,... -
creating a user profile for the aspnet user
Hi, I have an asp.net web app that needs to invoke MS word. I have given the ASPNET user the relevant privileges and eveything works fine.... -
User ASPNET
I have a share in other computer and I want access to that sahre with my web application. For that I do: - Create a User ASPNET in my domain - Use... -
ASPNET user.
When I install Visual Studio, VSDEBBUGERS and VSDEVELOPERS groups are created. Right? What about the ASPNET user? Do I have to create it manually? ... -
ASPNET user account
It says web applications run using the ASPNET user account. The SQL database administrator will have to set up this account and grant it... -
Jeff #2
Re: ASPNET user and CDO
Make sure that the ASPNET account has read access to the CDOSYS.DLL (usually
in System32) and that it can write to the InetPub\MailRoot directories.
Jeff
"Damien" <damien.mccartney@bicsystems.com> wrote in message
news:xhdjb.322$wM6.347819@newsfep1-win.server.ntli.net...an> Hi all,
> I have a problem in and around the ASPNET user and CDO, my code is as
> follows
>
> using System;
> using System.Web.Mail;
>
> MailMessage mm = new MailMessage();
>
> //set the properties
> mm.To = "dum.dumb@dumb.com";
> mm.Subject = "subject - test";
> mm.Body = "message - test";
> mm.From = "dum.dumb@dumb.com";
> SmtpMail.Send(mm);
>
> If I round this code from a test harness it works fine but I fire it fromcompany> ASP.NET application I get the following error
>
> Message : Could not access 'CDO.Message' object.
> Source : System.Web
> Inner Ex : Exception has been thrown by the target of an invocation.
>
> which lead me to believe that this was a permissions error, so I added the
> ASPNET user to the administrators group to narrow down possibilities and
> this allowed the application to mail away tills its hearts content
> unfortunately my customer would not be happy (r they ever) with the ASPNET
> user having admin rights.
>
> Does anyone have an idea of what specifically the ASPNET user needs to
> access the CDO class.
>
> I have used this functionality before with no trouble but the whole> has just recently updated windows 2000 to service pack 4
>
> Cheers D
>
>
>
Jeff Guest



Reply With Quote

