ASP CDO & Excahnge 2007 / IIS 2007 on SBS 20087
Posted on 2010-01-05
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?