Unexpected Store Error
This is a problem I've dealt with for months now. We have a Windows
service that connects to two Exchange inboxes consecutively every 30
seconds. It works fine for weeks on end, then all of a sudden:
System.Runtime.InteropServices.COMException (0x8055001E): Unexpected
store error: %1!d! (0x%1!8.8x!)
at ADODB.RecordsetClass.Open(Object Source, Object
ActiveConnection, CursorTypeEnum CursorType, LockTypeEnum LockType,
Int32 Options)
at MessageService.Exchange.ExchangeClient.Connect(String folderUrl,
String userId, String password, Boolean useHttp)
No further attempts to connect to the inbox work until the information
store is restarted. Restarting our own service has no effect.
Does anybody have any idea what could cause this?
The relevant code that throws the exception is:
if(useHttp)
{
connection.Provider = "MSDAIPP.DSO";
connection.Open(folderUrl, userId, password,
(int)ADODB.ConnectOptionEnum.adConnectUnspecified);
}
else
{
connection.Provider = "exoledb.datasource";
connection.Open(folderUrl, "", "",
(int)ADODB.ConnectOptionEnum.adConnectUnspecified);
}
if (connection.State == (int)System.Data.ConnectionState.Open)
{
string strDAV = string.Format(m_strSQL, folderUrl);
rs.Open(strDAV, connection, ADODB.CursorTypeEnum.adOpenUnspecified,
ADODB.LockTypeEnum.adLockOptimistic, 1);
if (!rs.EOF)
{
rs.MoveFirst();
result = ConnectState.ConnectEmail;
}
else
{
result = ConnectState.ConnectNoEmail;
}
}
date: Wed, 2 Jan 2008 07:18:37 -0800 (PST)
author: pepethecow