Microsoft KB Archive/217067

= BUG: CDONTS Newmail Object Fails on Terminal Server Client =

Article ID: 217067

Article Last Modified on 3/4/2004

-

APPLIES TO


 * Microsoft Collaboration Data Objects 1.2 for NT Server

-



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.



Steps to Reproduce Behavior
 Logon to the Terminal Server at the console (locally). Make sure the CDONTS library is registered on the Terminal Server. Create a Microsoft Visual Basic project and add a reference to the CDO for NTS 1.2 library from your project.  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.  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. Run the previous Microsoft Visual Basic code from the Terminal Server client machine.</li></ol>

The code will fail with the following error message:

Error 429 - ActiveX cannot create object

Keywords: kbbug kbmsg KB217067

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.