473,790 Members | 3,265 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Writing contacts to an exchange public folder...

I'm in a situation, where i'm supposed to develop a windows service,
connecting to an external source, and insert new contact persons to an
Exchange public folder. Everything is going well, until I actually had to
access the Exchange folder.

First I tried interop'ing with Outlook, managing to create a contact in my
default contact folder, and then moving it to the specified public folder
(workaround). That puts up some problems considering it being a service, and
some dialog boxes appeared demanding attention, though a username/pass was
produced.

Secondly I tried using ADO.NET and ExOleDB, but couldn't figure out how on
earth to connect to the server.

Anyone who has tried doing this, who has some hints, and preferably some few
lines of essential code in any .NET language?

Thanks in advance

Kim
Nov 15 '05 #1
1 2529
On Mon, 15 Dec 2003 10:07:09 +0100, "Kim Nørby Andersen"
<kn*@removethis .multihouse.dk> typed and posted to
microsoft.publi c.dotnet.langua ges.csharp:

Kim you will want to download the Exchange 2000 SDK from Microsoft. There is a
sample .NET application (Issue Tracking) that I believe does what you are
asking. Here is the URL for the SDK: http://tinyurl.com/zau6

Will
I'm in a situation, where i'm supposed to develop a windows service,
connecting to an external source, and insert new contact persons to an
Exchange public folder. Everything is going well, until I actually had to
access the Exchange folder.

First I tried interop'ing with Outlook, managing to create a contact in my
default contact folder, and then moving it to the specified public folder
(workaround) . That puts up some problems considering it being a service, and
some dialog boxes appeared demanding attention, though a username/pass was
produced.

Secondly I tried using ADO.NET and ExOleDB, but couldn't figure out how on
earth to connect to the server.

Anyone who has tried doing this, who has some hints, and preferably some few
lines of essential code in any .NET language?

Thanks in advance

Kim


Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
19348
by: Fritz Switzer | last post by:
Can anyone provide a small snippet in C# that pulls out the Contacts in Outlook XP. I've seen a couple of examples in C++ and VB in previous newsgroup posts, but either the originals didn't work or my conversion skills are weak. And if I have to use tlbimp.exe what is the right file to use. Thanks for the help. -- Fritz
1
1340
by: ajkarston | last post by:
i have 6 comps hooked to a normal ms network an want to be able to access a contacts list on one comp. from any other is this possible much thanks to whoever can help..
1
5755
by: Roland Wolters | last post by:
Hi, I need to read contacts from a public folder in Exchange. I want to do this using my favorite developping language .... c# Anyone there to get me started ? Roland
0
2025
by: George Durzi | last post by:
Hey all, I finally found the necessary resources in the Exchange 2003 SDK to "pull" Contacts out of Exchange and display them on a WebForm. I have been trying to do this forever, and couldn't until the Exchange 2003 SDK came out. Here's the code. Hopefully someone else can find this useful. #region DisplayExchangeContacts private void DisplayExchangeContacts() {
1
2659
by: Chris Thunell | last post by:
I need to loop through a public folder on our exchange server and get some information out of each record... I have the following code, but I can't seem to figure out how to reference the public folder: Dim objFolder As Outlook.MAPIFolder Dim objItem As Object Dim colItems As Items Dim objItem2 As ContactItem
11
2843
by: ML | last post by:
What is th best/easiest way to access a public contacts folder on an Exchange server from a winforms vb.net applciation? I would like to be able to provide the user with a list of contacts and their associated details from what is stored in Exchnage on a custom form inside a winforms application.
7
3630
by: Chris Thunell | last post by:
I'm trying to loop through an exchange public folder contact list, get some information out of each item, and then put it into a vb.net datatable. I run though the code and all works fine until i get to item 250 i get a "system.invalid cast exception" and "specified cast is not valid". Once i get this error and try to go to the next record.. every record after gets the same error... It's like the com connection to outlook has been lost....
1
4591
by: Phil Stanton | last post by:
I have a Yacht Club Db with names addresse phone nos, emails etc. I want to export them to Outlook. No problem in getting them into the contact folder. My problem is I have a folder within the contact folder called "Yacht Club" How do I change the "active folder" from Contacts to "Yacht Club" Existing code here:
0
1035
by: phill86 | last post by:
Hi, I have a shared contacts folder on a outlook exchange server i need to access the contacts in that folder using smart tags. is there any way to point the open/add contacts to the folder on the server? Regards Phill
0
9512
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10419
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10201
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10147
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9987
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9023
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5424
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4100
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3709
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.