Microsoft KB Archive/177975

= VBClientExplicitSecurity:ActiveX Component Cannot Create Object =

Article ID: 177975

Article Last Modified on 3/12/2004

-

APPLIES TO


 * Microsoft COM Transaction Integrator for CICS and IMS 1.0

-



This article was previously published under Q177975



SYMPTOMS
When you run the VBClientExplicitSecurity tutorial sample, you receive the following error message:

Object Creation Failed: ActiveX component can't create object.



CAUSE
The statement Set objSecurityContext = CreateObject("Cedar.HostSecurityContext") specifies the wrong PROGID. The correct PROGID is  COMTI.HostSecurityContext



WORKAROUND
To work around the problem, perform the following steps:

  In the Visual Basic (VB) development environment, open the following project:      ~\sna\Comti\Tutorials\CedarBank\VBClientExplicitSecurity \CedarBank.vbp NOTE: The path and project name should be typed as one line.  Select the Form, frmMain (Testbank.frm) On the View menu, click Code.  Locate both occurrences of the line Set objSecurityContext = CreateObject("Cedar.HostSecurityContext") and change each statement to      Set objSecurityContext = CreateObject("COMTI.HostSecurityContext")  On the File menu, click Make, and then select CedarBank.exe from the menu (or test by running in VB debug mode).</ol>

<div class="status_section">

STATUS
Microsoft has confirmed this to be a problem in SNA Server 4.0. A supported fix is now available for SNA Server 4.0, but has not been fully regression-tested and should be applied only to systems experiencing this specific problem. Unless you are severely impacted by this specific problem, Microsoft recommends that you wait for the next Service Pack that contains this fix. Contact Microsoft Product Support Services for more information.

Keywords: kberrmsg kbbug kbpending KB177975

-

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

© Microsoft Corporation. All rights reserved.