Article ID: 286301 - Last Review: October 17, 2006 - Revision: 5.4 Run-time error 800a0046 with CDONTS.Newmail object
This article was previously published under Q286301 On This PageSYMPTOMS When you try to send mail by using the CDONTS.NewMail object in Active Server Pages (ASP), you may receive the
following error message, where xxx is the line number that uses the Send method of the NewMail object: Microsoft VBScript runtime error
'800a0046' Permission denied /filename.asp, line xxx CAUSE This error occurs because the ASP page runs in its own
memory space through Internet Information Services (IIS). To see if this is the
case, follow these steps
in IIS 4.0:
In IIS 5.0, you can see that High (isolated) is selected in the Application Protection list. RESOLUTION To resolve this issue, Microsoft recommends that you run
the page in-process. To run the page in-process, click to clear the Run in separate memory space check box
in IIS 4.0. Follow the steps in the "Steps to
Reproduce the Behavior" section of this article, but in Step 5, click to clear
the check box
in IIS 4.0. In IIS 5.0, a workaround that Microsoft does not support or recommend is to add the IWAM_Machinename account to the Operators tab for the SMTP service. This gives the IWAM_Machinename account the correct permissions to the metabase that CDO for NTS (CDONTS) requires. Note This workaround gives all out-of-process applications access to the metabase, and Microsoft does not recommend this method. STATUS CDONTS was designed to be run as an in-process component
through IIS. Typically, the IUSR_Machinename account is given access to the
metabase. This account is used by applications that run in-process with IIS.
When you run an application out-of-process, it runs from MTS under the
IWAM_Machinename account. By default, this account is not given the necessary
permissions to the metabase. This behavior is by design. MORE INFORMATIONSteps to Reproduce the Behavior
| Other Resources Other Support Sites
CommunityArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top