Microsoft KB Archive/312714

= PRB: COM+ Application Programmatically Set As Workflow Host Causes Error =

Article ID: 312714

Article Last Modified on 6/4/2003

-

APPLIES TO


 * Microsoft BizTalk Server 2000 Standard Edition
 * Microsoft BizTalk Server 2002 Standard Edition

-



This article was previously published under Q312714



SYMPTOMS
If you try to run a COM+ application that is set to host XLANG Schedules, and the application is not configured with an appropriate DSN, you may receive the following error message:

The database connection could not be established. The following error(s) occurred:

The User/System DSN is either not present or has not been configured to use Windows Authentication.



CAUSE
All XLANG Scheduler System Manager objects must have an associated Data Source Name (DSN) that points to a SQL Server database to support the dehydration and rehydration of long-running business processes.



RESOLUTION
To resolve this problem, create a DSN for the COM+ application that you have configured as a host for XLANG Schedules. To do this, follow these steps:
 * 1) Right-click the COM+ application, and then click Properties.
 * 2) Click the XLANG tab, and then click Create DSN.



STATUS
This behavior is by design.



MORE INFORMATION
If you manually set a COM+ application to be a host for XLANG Schedules and you do not specify an appropriate DSN that points to an XLANG persistence database, you receive the following error message:

No DSN Found

To configure a COM+ server application as a host for XLANG schedules, you must first create and configure a DSN for its persistence database.

When you programmatically set a COM+ application to be a host for XLANG Schedules, an XLANG persistence DSN is not verified, and the newly created COM+ XLANG Schedule host cannot host XLANG Schedules until an appropriate DSN is created for it.

It is possible to programmatically set a COM+ application to be a host for XLANG Schedules when you use the BizTalk WKFlow.SysMgr interface. For example, the following script sets the COM+ application named TestWorkflowHost to be a host for XLANG Schedules: Set oGM = CreateObject(&quot;WKFlow.SysMgr&quot;) oGM.IsWorkflowHost(&quot;TestWorkflowHost&quot;)=True NOTE: After you programmatically set a COM+ application as a host for XLANG Schedules, you must add a component to the COM+ application to successfully invoke the COM+ application. The component that you add to the application can be any valid registered COM component and does not have to be the WkFlow.SysMgr class.

Keywords: kbprb kbpending KB312714

-

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

© Microsoft Corporation. All rights reserved.