Objectmix
Tags Register Mark Forums Read

ADO Record over EXOLEDB BUG REPORT during Event Registration Enabling/disabling : Microsoft Exchange

This is a discussion on ADO Record over EXOLEDB BUG REPORT during Event Registration Enabling/disabling within the Microsoft Exchange forums in Microsoft Tools category; Welcome! I've spend a couple of hours debugging this problem and I think it is bug for sure. I have written my own C++ code for Enabling/Disabling event Registration based on Microsoft Exchange SDK sample VBS project (from Project VBEventsRegistration). What surprise me if I call the Enable/Disable procedure a couple of times (one by one) the event registration record is broken!!! You can simulate it instantly clicking 10 times in the Enable/Disable registration button like "10-times click" on original SDK sample Form code. I think that "fast transactions" are not queued and procedured like real transations should be handled ...


Object Mix > Microsoft Tools > Microsoft Exchange > ADO Record over EXOLEDB BUG REPORT during Event Registration Enabling/disabling

Microsoft Exchange Microsoft exchange administration, client setup, active directory, connectivity, development, clustering, connectivity and other related discussions

Reply

 

LinkBack Thread Tools
  #1  
Old 03-24-2005, 10:58 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default ADO Record over EXOLEDB BUG REPORT during Event Registration Enabling/disabling

Welcome!

I've spend a couple of hours debugging this problem and I think it is bug for sure.
I have written my own C++ code for Enabling/Disabling event Registration based
on Microsoft Exchange SDK sample VBS project (from Project VBEventsRegistration).
What surprise me if I call the Enable/Disable procedure a couple of times (one
by one) the event registration record is broken!!!
You can simulate it instantly clicking 10 times in the Enable/Disable
registration button like "10-times click" on original SDK sample Form code.
I think that "fast transactions" are not queued and procedured like real
transations should be handled by the ExOLEDB Connection object - CommitTrans().

Any next try to open this record causes error.
_com_error structure information is:
Microsoft OLE DB Provider For Exchange
Error : 0x8055001e
Description: Unexpected store error: %1!d! (0x%1!8.8x!)

The registration Record is unaccessible at all - even after reboot of the
operating system.

Everything what can be done is to delete the broken record using recordset
query. After that it is required to recreate it to make it work again.

It is observed on Exchange 2000 SP2/SP3 and Exchange 2003 Servers. MDAC version
2.8 is installed. Please answer to this problem.

If You click this Api slower (5s interval between clicks - everything seems to
works OK) Any faster call to this procedure breaks the registration Event Record.
The original Microsoft's function code below:

Private Sub cmdDisEvtReg_Click()

On Error Resume Next

' Declare variables.
Dim strEventRegItemURL As String
Dim cnn As New ADODB.Connection
Dim recEvtRegItm As New ADODB.Record
Dim strResponse As String

' Set the provider to be the EXOLEDB provider.
cnn.Provider = "exoledb.datasource"

' Build the URL of the event registration item.
strEventRegItemURL = txtFolderURL.Text & txtRegName.Text

' Open the connection.
cnn.ConnectionString = txtFolderURL.Text
cnn.Open

' Error checking.
If Err.Number <> 0 Then
txtResponse.Text = txtResponse.Text & "Error opening connection: " &
Err.Number & " " & Err.Description & _
". This program must be run on an Exchange Server. "
Exit Sub
End If

' Begin trasaction.
cnn.BeginTrans

With recEvtRegItm
' Open the event registration item.
.Open strEventRegItemURL, cnn, adModeReadWrite

' Error checking.
If Err.Number <> 0 Then
txtResponse.Text = txtResponse.Text & "Error opening record: " &
Err.Number & " " & Err.Description & ". "
Exit Sub
End If

' Enable/Disable the event.
If .Fields(PROP_ENABLED) = False Then
.Fields(PROP_ENABLED) = True
strResponse = "Event registration item enabled. "
Else
.Fields(PROP_ENABLED) = False
strResponse = "Event registration item disabled. "
End If

' Update the fields.
.Fields.Update

' Error checking.
If Err.Number <> 0 Then
txtResponse.Text = txtResponse.Text & "Error updating fields: " &
Err.Number & " " & Err.Description & ". "
Exit Sub
End If
End With

' Commit transaction.
cnn.CommitTrans

' Error checking.
If Err.Number <> 0 Then
txtResponse.Text = txtResponse.Text & "Error committing transaction: "
& Err.Number & " " & Err.Description & ". "
Exit Sub
End If

' Set the response textbox.
txtResponse.Text = txtResponse.Text & strResponse
End Sub

Reply

Thread Tools


Similar Threads

Thread Thread Starter Forum Replies Last Post
GUI enabling/disabling design pattern usenet Object 5 06-21-2007 06:07 AM
Disabling SSL2.0 and enabling 3.0 or TLS1.0 usenet Inetserver 2 06-15-2007 07:03 AM
Enabling/disabling SSL via script usenet Inetserver 3 04-25-2007 02:16 PM
Enabling/Disabling a button based on entry usenet Clarion 7 11-19-2005 01:52 PM
checking/unchecking while enabling/disabling checkboxes usenet DOTNET 1 05-21-2004 08:47 PM


All times are GMT -5. The time now is 01:10 AM.

Managed by Infnx Pvt Ltd.