Microsoft KB Archive/303673

= PRB: ADODB Connection Error Operation Is Not Allowed When the Object Is Closed =

Article ID: 303673

Article Last Modified on 10/10/2003

-

APPLIES TO


 * Microsoft Commerce Server 2002 Standard Edition
 * Microsoft Commerce Server 2000 Service Pack 1

-



This article was previously published under Q303673



SYMPTOMS
When you use Commerce Server, you may receive the following error message:

Sitename

The page cannot be displayed

We apologize for the inconvenience. Please try again later. If the problem persists, please contact our webmaster.

In the Microsoft Windows 2000 Application Event log, you see the following:

Event Type: Error

Event Source: Commerce Server 2000

Event Category: None

Event ID: 4097

Date: 7/25/2001

Time: 4:49:04 PM

User: N/A

Computer: SERVER1

Description:

Retail

Error Type: ADODB.Connection Page: /retail/Default.asp

File: /retail/include/global_siteconfig_lib.asp

Line:280

80004005

Operation is not allowed when the object is closed.

Note: Set Application(&quot;MSCSEnv&quot;) = DEVELOPMENT to turn on client error messages.

Note: Please see error\500error.asp to further customize error messages.



CAUSE
Commerce Server uses a Universal Data Link (UDL) data link connection over OLEDB provider to connect to the Microsoft SQL Server computer. These errors indicate that the connection to the site's database failed. Possible causes include the following:
 * The connection string is wrong. The password may have changed, the port may have changed, and so on.
 * The database is offline.
 * The SQL server is paused or stopped.
 * The SQL server is unreachable because of a network issue, such as a DNS issue, a changed name, and so on.



RESOLUTION
To check the connection strings, follow these steps:  Open Commerce Server Manager, double-click Commerce Server Manager, and then double-click Commerce Sites. Double-click the site that is not working, then double-click Site Resources. Right-click Transactions and click Properties. Click Modify to change the connection string information.NOTE: To change the SQL port number, you must add a comma and then the port number, as follows:

SERVERNAME,Portnumber

 Click Test Connection.

Repeat this process for the Retail Data Warehouse ProductCatalog object, as well as the Campaign and Profile objects.

After you correct the problem, you must restart the Commerce application by using IISReset.

If you receive the following error message

Error: CommerceServer2000's Administration database is not accessible, access to site is denied temporarily.

there is a problem with the connection to the MSCS_Admin database. To verify the connection string, follow these steps:  Open Commerce Server Manager.</li> Right-click Commerce Server Manager and click Properties.</li> Click Modify to change the connection string information.NOTE: To change the SQL port number, you must add a comma and then the port number, as follows:

SERVERNAME,Portnumber

</li> Click Test Connection.</li></ol>

<div class="moreinformation_section">

Steps to Reproduce Behavior

 * 1) Open Commerce Server Manager, double-click Commerce Server Manager, and then double-click Microsoft SQL Servers.
 * 2) Browse to the site's database (for example, Retail_Commerce).
 * 3) Right-click the database, click All Tasks, and then click Take Offline.
 * 4) Open Microsoft Internet Explorer and type the URL to the Commerce site.

Keywords: kbprb KB303673

-

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

© Microsoft Corporation. All rights reserved.