Microsoft KB Archive/259176

From BetaArchive Wiki
Knowledge Base


Error 8002801d occurs when you create a CDONTS.NewMail Object

Article ID: 259176

Article Last Modified on 12/26/2006



APPLIES TO

  • Microsoft Collaboration Data Objects 1.2 for NT Server



This article was previously published under Q259176

Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry


SYMPTOMS

When you use the CreateObject function to create an instance of the CDONTS.NewMail object, from an Active Server Pages (ASP) page with Anonymous permissions set up, the following error message occurs:

error '8002801d'
Library not registered

Note that if the ASP page is set up to use basic authentication, and you use the administrator account to log on, then the CDONTS.NewMail object is successfully created.

CAUSE

This behavior occurs because the everyone account does not have read permissions for the type library settings for the Collaboration Data Object for Windows NT Server (CDONTS) object in the registry.

This behavior is by design.

RESOLUTION

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.
To resolve this issue, perform the following steps:

  1. Click Start, and then select Run.
  2. Type "Regedt32," and then click OK. Select the following key in the Registry Editor:

    HKEY_CLASSES_ROOT\TypeLib\{0E064ADD-9D99-11D0-ABE5-00AA0064D470}

  3. In the Editor menu, click the Security tab, and then select Permissions.
  4. Select Replace Permissions on Existing Subkeys in the dialog box.
  5. Click Add, and then give the everyone account read permissions.
  6. Click OK.
  7. Run your ASP page to create the CDONTS.NewMail object.


REFERENCES

For more information on this error as it occurs with any object, click the following article number to view the article in the Microsoft Knowledge Base:

274038 PRB: ASP Error 8002801d "Library not registered"



Additional query words: 8002801d Library registered Registry CDONTS CreateObject

Keywords: kbmsg kbprb KB259176