CDOSYS.dll System.Web.Mail

S

Steve Y.

I am trying to send mail but I am getting an access is
denied message. The cdosys.dll is in the C:\Winnt\system32
folder. Should I be granting access to this folder or to
the dll to the ASPNET user account?

Anyone know the proper security thing to do here?

Thanks,
Steve
 
M

Marcus

Hi Steve,

Did you manage to get a resolution to this? I'm having exactly the
same problem and it's driving me mad. The application works in VB.NET
(Windows App) but refuses to work in ASP.NET. It must be some sort of
permissions issue but I've researched this all day and drawn a blank.

Any help appreciated!!

Marcus.
 
S

Steve Y.

No. I am hoping Microsoft support might drop a few tidbits
of information and help out. What really bothers me is
that I can get all this stuff to work easily in asp
classic but asp.net is not very clear on what it needs
permissions to! Yes, it is a permissions error the
question is how to solve it without making the aspnet
account an administrator.
 
S

Steve Yaworsky

I don't think that article is related. I am using the built in
System.Web.Mail stuff which accesses CDOSYS.dll behind the scenes. I
know for sure the System.Web.Mail works on an IIS box but it is after it
has been locked down, (using the IIS lockdown tool) that it seems to
stop working. I just have to figure out what permissions to turn on so
it works again without comprimising the web server. I will definitely
let you know if I figure it out.

Thanks,

Steve
 
E

Eric

I hope someone gives some insight into this problem because I've tried for
the past month to resolve it. I even have multiple machines to try it on.
Only one machine works... The one without IIS lockdown ran on it. I've
changed all kinds of permissions throught the machine and still don't have
it. I will not make ASPNET an administrator. I will leave it broke forever
first.
 
S

Steve Y.

Just for test purposes did you try making the ASPNET user
an administrator to see if it works or change the
machine.config to user the "System" account over
the "machine" account to see if it works which would
isolate the issue? Let me know.

Steve
 
E

Eric

Well first let me retract some of my last letter. All other test machines
work, even those that have IIS lockdown run on them. Every machine works
except my production server - the page (at the moment) can't be reached
unless you type in the URL directly - so nobody gets upset at the page. I
can't change the machine.config file on the production server like that.
The other test web servers are using "machine" as opposed to "system". I'm
sure it would work if I changed it on the production machine. I wish
someone from microsoft would comment on this. I'm sure it could be fixed
fairly easy with some permission change somewhere! I just can't find where!
I have been looking through newgroups and searching the internet, but still
no damn answers.
 
E

Eric

Let elaborate even a little more since this is the only newsgroup to have
ANY replies at all. My code is also using a remote SMTP server to send the
mail through (which I did specify in code). All test machines work (5).
I'm not using the local machines smtp service for this. Well whatever, I
hope someone who knows will post something here.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top