You are not authorized to run the cdonts application.

Source: Internet
Author: User

You are not authorized to run the cdonts application.
Q: I tried to use the following script on my site.
(Http://www.microsoft.com/technet/community/columns/insider/iisi1201.mspx ))

<%
Dim objmail
Set objmail = server. Createobject ("cdonts. newmail ")

Objmail. From = "yourname@youremail.com"
Objmail. Subject = "a sample mail sent with cdonts"
Objmail. To = "someone@somwhere.com"
Objmail. Body = "here is the message ."
Objmail. Send
Set objmail = nothing

%>

However, my server generates the following error code:

Microsoft VBScript error "800a0046"-the permission is denied.

A: cdonts is designed to run in the form of in-process components on Windows NT 4.0 using IIS 4.0. When an application runs outside a process, it uses the IWAM _ <computer name> account and runs in the MTS. EXE (IIS 4.0) or DLLHOST. EXE (iis5) process. When running an application outside of a process, the IWAM account may need to access files and system resources. For such cdonts objects, the IWAM account needs to access the Machine Key of the system (see Microsoft Knowledge Base Article 318478 )) and some folders in the inteinfo/mailroot folder (see Microsoft Knowledge Base Article 260985 )).

With this information, you may need to perform other operations. First, as a policy, you should rewrite the application code to use the cdosys object (see the IIS column in January December 2001 )). This will ensure that it will also be supported in the future, because the dosys object is not installed on Windows 2000 or Windows Server 2003. This may be possible, but it may not solve your problem. Second, if the cdonts application is running in the process rather than outside the process, you can determine that the problem is related to the permissions of the IWAM user account. Due to security considerations, you may not be able to or do not want to run the cdonts application in the process, but this can avoid permissions related to the IWAM account. Confirm that mailroot and Machine Key have the appropriate permissions. Second, if the user who starts the ASP script does not have the appropriate permissions for the mailroot/pickup folder, such an error message may also appear. By default, the mailroot folder permission is set to everyone-full control, but this permission is too high. Therefore, we recommend that users who have passed Identity Authentication set the permission for this folder to read/write, while system and administrators set it to "full control ". This allows IUSR and IWAM users and other user accounts to write emails to the SMTP folder. You should also set IUSR _ <computer name> to deny execution of these folders. If you have run the IIS Lockdown tool, you can use the Web anonymous users local group to implement this. Do not deny the write permission of the Web Applications Group.

Back to Top
After IIS 5.0 is installed, the server fails to run.
Q: On IIS 5.0, we want to run the application under the default protection settings of the Application -- medium (shared. After this configuration, we receive the following error message:

Error Code 800800005-failed to run the server.

We tried to uninstall and reinstall IIS, but this message still appears. How should we solve this problem?

A: This message usually indicates that the IIS settings or installation process is incorrect. View the iis5.log file (in the % SystemRoot % folder, which is usually under/WINNT) and search for the word "fail ". This may cause problems. When a message appears, it is likely to be accompanied by some event viewer messages that provide very valuable information. In addition, it is worth trying to run synciwam. vbs, which is located in the/inetpub/adminscripts folder by default. Finally, try a well-known tip: Open the control panel and click Add/delete Windows programs ". Do not make any changes, and then click OK ". This operation will enable Windows 2000 to perform some verification tests on IIS and COM + objects.

2. if the following conditions occur:
System. runtime. interopservices. comexception: the server rejects one or more recipient addresses. Server Response: 550 5.7.1 unable to relay for rav@now.net.cn

Default SMTP virtual server -- properties -- access -- relay -- "add 127.0.0.1 ";
That's all.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.