com exceptions thrown on _MailItem.Get_EntryID() when hot syncing

Add-in Express™ Support Service
That's what is more important than anything else

com exceptions thrown on _MailItem.Get_EntryID() when hot syncing
 
Jim Erwin




Posts: 23
Joined: 2006-10-09
Sergey,

So even though the target PCs are using Outlook 2003, I should use the Outlook XP PIA? Additionally, will the XP PIAs work with Outlook 2003 with Office 2003 on my development virtual?

thanks,

JE
Posted 13 Oct, 2006 13:37:29 Top
Jim Erwin




Posts: 23
Joined: 2006-10-09
Sergey,

I have installed and attempted to use the Office XP PIAs. I have run into an issue almost instantly. Outlook XP does not provide the MailItem.SenderEmailAddress property that is provided by Outlook 2003. As a result, I'd need either another method to get the sender email address, or I'd have to mix and match Outlook 2003 and Office XP PIAs. Any thoughts on this?

regards,

JE
Posted 13 Oct, 2006 15:59:08 Top
Sergey Grischenko


Add-in Express team


Posts: 7229
Joined: 2004-07-05
Hi Jim.

Now we need to find the cause of the issue with the EntryID property.
So please comment the add-in code that are not compiled with PIAs XP and test the EntryID property only. Please let me know about results.
Posted 16 Oct, 2006 08:00:41 Top
Jim Erwin




Posts: 23
Joined: 2006-10-09
Sergey,

The issue occurs sporadically on production machines, and I have yet to be able to reproduce it on my development or deployment virtual machines. Here is an error we started getting after I had removed all of my custom exception handling code and allowed the default add-in express error handlers to take over. This has happened on multiple production machines sporadically with the version of the code that uses the mixture of Office XP and Outlook 2003 PIAs.

I can't easily just comment out the code not compiled with XP PIAs since the same part of the code that has the problem is intertwined with the part that needs the Outlook 2003 PIA (using the SenderEmailAddress property of the MailItem).

Here is the error being generated.

-----------------------------------

Detailed technical information follows:
---
(Inner Exception)
Date and Time: 10/16/2006 9:11:17 AM
Machine Name: GIC-C95
IP Address: 10.0.0.136
Current User: GENESYS\lucidos

Application Domain: DefaultDomain
Assembly Codebase: file:///C:/WINDOWS/assembly/GAC_MSIL/AddinExpress.MSO.2005/2.7.1762.2005__c20c070a1fc9a144/AddinExpress.MSO.2005.dll
Assembly Full Name: AddinExpress.MSO.2005, Version=2.7.1762.2005, Culture=neutral, PublicKeyToken=c20c070a1fc9a144
Assembly Version: 2.7.1762.2005
Assembly Build Date: 10/28/2004 2:06:50 AM

Exception Source: Gsc.MsOffice.MsOutlook.AddIn
Exception Type: System.AccessViolationException
Exception Message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Exception Target Site: adxOutlookEvents_InspectorActivate

---- Stack Trace ----
Gsc.MsOffice.MsOutlook.AddIn.Project.AddinModule.adxOutlookEvents_InspectorActivate(sender As Object, inspector As Object, folderName As String)
AddinExpress.MSO.2005.dll: N 0113 (0x71) IL
AddinExpress.MSO.ADXOutlookAppEvents.DoInspectorActivate(inspector As Object, folderName As String)
AddinExpress.MSO.2005.dll: N 0008 (0x8) IL



(Outer Exception)
Date and Time: 10/16/2006 9:11:17 AM
Machine Name: GIC-C95
IP Address: 10.0.0.136
Current User: GENESYS\lucidos

Application Domain: DefaultDomain
Assembly Codebase: file:///C:/WINDOWS/assembly/GAC_MSIL/AddinExpress.MSO.2005/2.7.1762.2005__c20c070a1fc9a144/AddinExpress.MSO.2005.dll
Assembly Full Name: AddinExpress.MSO.2005, Version=2.7.1762.2005, Culture=neutral, PublicKeyToken=c20c070a1fc9a144
Assembly Version: 2.7.1762.2005
Assembly Build Date: 10/28/2004 2:06:50 AM

Exception Source:
Exception Type: AddinExpress.MSO.ADXExternalException
Exception Message: Error occured in the code of the add-in.
Exception Target Site: Object reference not set to an instance of an object.

---- Stack Trace ----

regards,

JE
Posted 16 Oct, 2006 15:11:05 Top
Sergey Grischenko


Add-in Express team


Posts: 7229
Joined: 2004-07-05
Hi Jim.

Can you send me the code? I will test it on my PC.
Posted 17 Oct, 2006 09:58:46 Top
Jim Erwin




Posts: 23
Joined: 2006-10-09
Sergey,

Sorry for the slow response, but I needed to check with my client to make sure I could release the code and other related pieces to you since it is their property and not mine.

The add-in requires a Sql Database (currently using Sql Server 2000) and a connection to an Exchange server (2003) with public folders corresponding to "projects". I can describe the deployment to you in a document along with the source code and database. Do you have what you need to be able to use this? If you can manage these things, then I will put the package together for you later tonight and you should have it first thing in the morning there.

Also, where do you want me to send it specifically?


regards,

JE
Posted 17 Oct, 2006 13:33:42 Top
Sergey Grischenko


Add-in Express team


Posts: 7229
Joined: 2004-07-05
Hi Jim.

I have just sent you an email. Please check your inbox.
Posted 18 Oct, 2006 08:46:51 Top