Solved

Config file in Outlook add-in

Posted on 2009-04-06
6
1,363 Views
Last Modified: 2013-11-10
Hi all,
I am developing a shared add-in,in which I am connecting to my SQL database.I want to put my connection string in app.config file and access ot from there.
And some keys also,which I should be able to read in add-in.
0
Comment
Question by:johny_bravo1
  • 3
  • 2
6 Comments
 
LVL 23

Accepted Solution

by:
irudyk earned 500 total points
Comment Utility
Take a look at the following link which seems to describe what you are tyring to do - http://www.dreamincode.net/code/snippet1145.htm
0
 
LVL 8

Author Comment

by:johny_bravo1
Comment Utility
Thanks irudyk,
but I am not sure if it works in Shared add-in
0
 
LVL 23

Expert Comment

by:irudyk
Comment Utility
Okay, I guess I'm missing something here...I would have thought that the shared add-in would contain code that to read the connection string from the app.config file.  Is that not the case?
0
 
LVL 8

Author Comment

by:johny_bravo1
Comment Utility
I put the connectionstring in app.config
But not able to get ConfigurationManager in connect.cs
0
 
LVL 8

Author Closing Comment

by:johny_bravo1
Comment Utility
I am closing this question.Appreciate ur effort of answering..Thanks.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now