BUG: CDONTS Newmail Object Fails on Terminal Server Client (217067)



The information in this article applies to:

  • Collaboration Data Objects (CDO) for NTS 1.2

This article was previously published under Q217067

SYMPTOMS

When trying to use the Collaboration Data Objects for NTS (CDONTS) library in a Visual Basic project from a Terminal Server client, the code fails with the following error message:
Error 429 - ActiveX cannot create object

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Logon to the Terminal Server at the console (locally).
  2. Make sure the CDONTS library is registered on the Terminal Server.
  3. Create a Microsoft Visual Basic project and add a reference to the CDO for NTS 1.2 library from your project.
  4. Verify that the library does indeed work, by running the following code:
    Private Sub Form_Load()
         Dim mycdonts As CDONTS.NewMail
    
         Set objCDOnts = CreateObject("CDONTS.newmail")
         objCDOnts.Send "Sender@Company.com", "Recip@Company.com", "Message Subject", "Message Body"
         Set objCDOnts = Nothing
    End Sub
    						
    This should run correctly.
  5. Run the Terminal Server client from another machine and log on to the Terminal Server using the same Windows NT account that was used in the step one above.
  6. Run the previous Microsoft Visual Basic code from the Terminal Server client machine.
The code will fail with the following error message:
Error 429 - ActiveX cannot create object

Modification Type:MinorLast Reviewed:3/4/2004
Keywords:kbbug kbMsg KB217067