As I recall it's a timing issue if you don't explicitly release all your
objects. I think Exchange just holds open those RPC connection channels for
a considerable time. But since I refuse to code Outlook in VB.NET or C# I'm
not positive.
The language isn't so much the issue as the API you use. You can connect to
an Exchange server using lots of different API's, some of which are
supported for C#, such as WebDAV or ADO or CDO 1.21 or Extended MAPI and so
on. I don't think you can close those RPC channels that are affecting your
code using any programmatic access as far as I know though.

Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
>I thought so, too, but it turned out that closing outlook did not flush
>these things.
[quoted text clipped - 8 lines]
>
> Sam
Sam Jost - 30 Dec 2004 11:41 GMT
Hi Ken,
yep, you are right, the problem does appear when not releasing my objects,
and some timeout takes care of it after a looong time.
Well, anyway, problem is solved now, thanks a lot again!
Sam
> As I recall it's a timing issue if you don't explicitly release all your
> objects. I think Exchange just holds open those RPC connection channels
[quoted text clipped - 20 lines]
>>
>> Sam
Rich Barone - 08 Feb 2005 16:59 GMT
Here's an example: (ns is your already obtained namespace)
Dim objSycs As Outlook.SyncObjects
Dim objSyc As Outlook.SyncObject
Dim fldContacts As Outlook.MAPIFolder
Dim fldNotes As Outlook.MAPIFolder
Try
objSycs = ns.SyncObjects
objSyc = objSycs.AppFolders
fldContacts =
ns.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts)
fldContacts.InAppFolderSyncObject = True
fldNotes =
ns.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderNotes)
fldNotes.InAppFolderSyncObject = True
objSyc.Start()
> Hi Ken,
>
[quoted text clipped - 28 lines]
> >>
> >> Sam