IIS 7 and Above
CDONTS or CDOSYS not working in IIS7 for old ASP app
Last post Oct 19, 2009 09:34 AM by neildt
Aug 01, 2008 05:37 PM|sfarmer|LINK
I have an Classic ASP app that I need to get running on a new Server 2008. I am unable to get the email objects to work with either CDONTS or CDOSYS.
I keep getting the following errors with permissions but have no idea how to fix it.
I get this error when I try to open a CDOSYS object:
I get this error when I try to open a CDONTS object:
Has anyone gotten this to work? Also, if you did get it to work did you deply your app using IIS7 or IIS^ Compatability?
Aug 01, 2008 10:05 PM|steve schofield|LINK
Make sure your app pool has access to cdosys.dll. You'll need to copy cdonts.dll and register it so the asp pages using cdonts will work.
Windows Server MVP - IIS
Log archival solution
Install, Configure, Forget
Aug 04, 2008 12:21 PM|sfarmer|LINK
How do I give the app pool access to cdonts.dll or cdosys.dll?
Aug 04, 2008 10:25 PM|steve schofield|LINK
Review the permissions in Windows Explorer is how you should review / grant security.
Aug 12, 2008 10:34 AM|sfarmer|LINK
What users do I need to add? I've added IIS_USERS and I'm still getting permission denied errors
Aug 12, 2008 07:26 PM|steve schofield|LINK
Enable auditing and see what is logged in the security event log. File Mon / procmon should help too.
Aug 18, 2008 10:24 PM|steve schofield|LINK
Here is a blog I wrote to get CDONTS to work on Windows Server 2008, x64.
Sep 25, 2008 02:48 AM|jimrPA|LINK
I want to comment on cdosys for IIS7. We recently deployed 10 iis7 servers and could not get cdosys to work. It kept saying cannot find pickup directory... Download iis6 resource kit, open metabase explorer, expand LM, expand SMTPSVC. right click on smtpsvc,
permissions, add iusr and iis_usrs group. Do the same to 1
Exit out, restart smtp service and you should be good to go. Hope this helps someone looking down the road :)
Oct 19, 2009 09:34 AM|neildt|LINK
You need to give the NETWORK_SERVICE full modify rights to the pickup folder. I made this change and it works fine for me. This works for the following code - providing you have installed SMTP Server which runs under IIS 6 app (seperate from IIS 7) on
Windows 2008 Web Edition.
Set MailRegister = CreateObject("CDO.Message")
MailRegister.To = "Neil <firstname.lastname@example.org>"
MailRegister.From = "Neil <email@example.com>"
MailRegister.Subject = "a test subject"
MailRegister.TextBody = "test"
Set MailRegister = Nothing