We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

CDONTS or CDOSYS not working in IIS7 for old ASP app [Answered]RSS

8 replies

Last post Oct 19, 2009 09:34 AM by neildt

  • CDONTS or CDOSYS not working in IIS7 for old ASP app

    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:

    |80070005|Access_is_denied.__ 80

    I get this error when I try to open a CDONTS object:

    |116|800a0046|Permission_denied 80

    Has anyone gotten this to work?  Also, if you did get it to work did you deply your app using IIS7 or IIS^ Compatability?

    Thanks!

  • Re: CDONTS or CDOSYS not working in IIS7 for old ASP app

    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.

    Steve Schofield
    Windows Server MVP - IIS
    http://iislogs.com/steveschofield
    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget

  • Re: CDONTS or CDOSYS not working in IIS7 for old ASP app

    Aug 04, 2008 12:21 PM|sfarmer|LINK

    Thanks

    How do I give the app pool access to cdonts.dll or cdosys.dll?

  • Re: CDONTS or CDOSYS not working in IIS7 for old ASP app

    Aug 04, 2008 10:25 PM|steve schofield|LINK

    Review the permissions in Windows Explorer is how you should review / grant security.

    Steve Schofield
    Windows Server MVP - IIS
    http://iislogs.com/steveschofield
    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget

  • Re: CDONTS or CDOSYS not working in IIS7 for old ASP app

    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

  • Re: CDONTS or CDOSYS not working in IIS7 for old ASP app

    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.

    http://weblogs.asp.net/steveschofield/archive/2008/03/07/detecting-permission-issues-using-auditing-and-process-monitor.aspx

    Steve Schofield
    Windows Server MVP - IIS
    http://iislogs.com/steveschofield
    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget

  • Re: CDONTS or CDOSYS not working in IIS7 for old ASP app

    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.

    http://weblogs.asp.net/steveschofield/archive/2008/08/18/getting-cdonts-to-work-on-windows-server-2008-x64.aspx

     

    Steve Schofield
    Windows Server MVP - IIS
    http://iislogs.com/steveschofield
    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget

  • Re: CDONTS or CDOSYS not working in IIS7 for old ASP app

    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 :)

  • Re: CDONTS or CDOSYS not working in IIS7 for old ASP app

    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 <myemailaddress@hotmail.com>"
       MailRegister.From = "Neil <myemailaddress@hotmail.com>" 
       MailRegister.Subject = "a test subject"
      
       MailRegister.TextBody  = "test"

       MailRegister.Send
       Set MailRegister = Nothing