Microsoft KB Archive/246622

= DoPipeError: DBStorage InitStorage Failed Because the Datasource Parameter Is Incorrect =

Article ID: 246622

Article Last Modified on 6/24/2004

-

APPLIES TO


 * Microsoft Site Server 3.0 Commerce Edition

-



This article was previously published under Q246622



SYMPTOMS
When you shop a Microsoft Site Server 3.0 Commerce site, an error message similar to the following occurs in the browser :

error 'ASP 0115'

Unexpected error

/store/xt_orderform_prepare.asp

A trappable error occurred in an external object. The script cannot continue running.

In the event log, an event ID similar to the following is logged:

Event ID: 5

Source: Active Server Pages

Type: Error

Category: None

Description:

Error: File /store/xt_orderform_prepare.asp Unexpected error

If you inspect a debug log generated with CDB, Exception Monitor, userdump, windbg, or a similar debugger, the following error message appears:

DoPipeError: Error Info description: DBStorage InitStorage failed because the datasource parameter is incorrect.

access violation



CAUSE
The Commerce.DBStorage object is being used improperly. For example, the following two code segments will generate the above errors:

'UtilGetOrderFormStorage creates a Commerce.DBStorage object and 'calls InitStorage Set mscsOrderFormStorage = UtilGetOrderFormStorage If Not IsNull(mscsOrderFormStorage) Then 'do some work End If Set mscsOrderFormStorage = UtilGetOrderFormStorage If Not IsEmpty(mscsOrderFormStorage) Then 'do some work End If



RESOLUTION
Do not pass the DBStorage object as a parameter to IsNull or IsEmpty. Instead, use the DBStorage object as a parameter to IsObject. For example:

Set mscsOrderFormStorage = UtilGetOrderFormStorage If IsObject(mscsOrderFormStorage) Then 'do some work End If

Additional query words: DoPipeError DBStorage InitStorage

Keywords: kbprb kbpending KB246622

-

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

© Microsoft Corporation. All rights reserved.