Latest Lists

Is there a simple way of getting Exchange public contacts into a .NET Application?

This is such basic, powerful functionality I'm *sure* it must have been done before, but much as I search on Google I can't find anything that works. I've tried half a dozen obscure "workarounds" to achieve this, not one of them has worked. All I get is error messages from deep inside the Mail API, and googling them simply leads to dead ends. So if anyone out there knows how to simply get a list of public exchange contacts into a .NET application, I'd love to hear from you! Thanks for the CSV suggestion.. it may be the only way, but I'd prefer to have the list updated every time the application starts. The reason being, the user of the application isn't well versed in Outlook, and I don't want them having to update stuff whenever a person joins or leaves the company, which is quite frequent here.

Public Comments

  1. I'd imagine you can export CSV, import into a database and use the .NET app to query the database. I'm not sure if you're looking for a 'How to code...' or if you have a certain .NET application you're working with here- but that's probably your best bet.
  2. You can use ADO to query Exchange server's store for its public contacts, through Exchange's built-in OLE DB driver (and use it to add / modify / delete contacts, too). http://msdn2.microsoft.com/en-us/library/ms191461.aspx I know the link above references SQL Server 2005, but you can use the basic concepts to connect from a .NET app using The System. Data. OleDb namespace
Powered by Yahoo! Answers