brownmetals
asked on
Server.CreateObject Failed in SBS 2008 / IIS7
I recently upgraded to Windows 2008 SBS running IIS7. My CDO scripts on my intranet are now failing with this message:
Server object error 'ASP 0177 : 8002801d'
Server.CreateObject Failed
It seems to be happening on the actual line where the CDO.MESSAGE object is created. Anyone have any idea on how to correct this issue?
Thanks,
J
Server object error 'ASP 0177 : 8002801d'
Server.CreateObject Failed
It seems to be happening on the actual line where the CDO.MESSAGE object is created. Anyone have any idea on how to correct this issue?
Thanks,
J
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hello J
The orginal issue was because of non availability of CDO objects at your server which i mentioned in my post. And the current issue is related to the permissions on the dll which is very much related to the original question. No need to close this question as unresolved and opening a new question.
the current permission issue is because IUSER_MACHINENAME is not having access to the cdosys.dll file. Please add access and it will start working..
neeraj
The orginal issue was because of non availability of CDO objects at your server which i mentioned in my post. And the current issue is related to the permissions on the dll which is very much related to the original question. No need to close this question as unresolved and opening a new question.
the current permission issue is because IUSER_MACHINENAME is not having access to the cdosys.dll file. Please add access and it will start working..
neeraj
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
J
Is this a solution if I were using a local smtp service. I am actually trying to use a remote service. Here are the connection parameters I am setting up.
' Setting the SMTP Server
Set Flds = objConfig.Fields <-- error occurs on this statement
Flds.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
Flds.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = smtp.domain.com
Flds.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
Flds.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = auth@domain.com
Flds.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = password
Flds.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
Flds.update
Set objMessage.Configuration = objConfi
It never even gets to the send
Steve
Is this a solution if I were using a local smtp service. I am actually trying to use a remote service. Here are the connection parameters I am setting up.
' Setting the SMTP Server
Set Flds = objConfig.Fields <-- error occurs on this statement
Flds.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
Flds.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = smtp.domain.com
Flds.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
Flds.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = auth@domain.com
Flds.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = password
Flds.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
Flds.update
Set objMessage.Configuration = objConfi
It never even gets to the send
Steve
ASKER
Steve,
Unfortunately, I do not know the answer to your question. Since this is a closed question, you're not likely to get the feedback you would if this were a new question. I would suggest opening a new question in the ASP and other related zones so that your question is visible to Experts in those areas. Once you do that, you should be able to get much better feedback.
Good luck!
J
Unfortunately, I do not know the answer to your question. Since this is a closed question, you're not likely to get the feedback you would if this were a new question. I would suggest opening a new question in the ASP and other related zones so that your question is visible to Experts in those areas. Once you do that, you should be able to get much better feedback.
Good luck!
J
J,
I found the solution and posted what I found. Case Closed.
Steve
I found the solution and posted what I found. Case Closed.
Steve
ASKER
CDO.Message.1 error '80070005'
Access is denied.
The line number corresponds to the cdoMail.Send command.
It seems like a permissions issue for the IUSR_SERVERNAME account to send email via Exchange 2007. I've tried creating an email account for the IUSR account, but that didn't seem to do the trick. Any other ideas?
Thanks,
J