ASP CDO & Excahnge 2007 / IIS 2007 on SBS 20087

Posted on 2010-01-05
Last Modified: 2012-06-21
I upgraded from SBS 2003 to SBS 2008 on a 64-bit machine. The upgrade broke all of my Classic ASP apps that use CDO to send emails. I was able to regster the CDOSYS.dll (regsvr32 C:\Windows\SysWOW64\cdosys.dll) which eliminated my initial ASP 0177 error. The ASP pages are now producing this error:

CDO.Message.1 error '80070005'

Access is denied.

This happens on the cdoMailObject.Send line in my code. Obviously, the IIS_USR account doesn't have permission to send email from CDO, but I can't figure out where/why.

I've tried adding IIS_USRS to Exchange 2007 so that it has it's own mailbox. That didn't seem to work. I tried giving IIS_USR permissions to WRITE on the mailroot and wwwroot folders, and that didn't seem to work. Any other suggestions?

Thank you,
Question by:brownmetals
    LVL 15

    Expert Comment

    Yeah my initial answer was going to be make sure that your anonymous user (IIS_IUSR) has write permissions to C:\inetpub\mailroot\pickup.  You should also ensure that the 'Network Service' account has access to this location.

    If you are still getting Access Denied errors, then you should be able to easily track down the source by enabling auditing and using something like Filemon.  Here is a step by step guide on setting that up which will help you resolve nearly all permissions issues:
    LVL 4

    Accepted Solution

    Thanks for your input. I actually had to contact Microsoft to get a direct answer (I posted that here on the original question which I'm trying to close).

    Microsoft recommends that SMTP not even be installed on an Exchange 2007 server (Exchange uses the Transport service to route mail in Exchange 2007). Their support engineers suggested removing the SMTP service all together. I believe IIS would use the SMTP service, but as Microsoft has suggested, using the Exchange Transport service instead is prefered. The complete explanation and further details are at that post above. I'm going to suggest this question be closed.

    Thanks agian for your input.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Logparser is the smartest tool I have ever used in parsing IIS log files and there are many interesting things I wanted to share with everyone one of the  real-world  scenario from my current project. Let's get started with  scenario - How do w…
    Lync server 2013 Backup Service Error ID 4049 – After File Share Migration
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now