Solved

Config file in Outlook add-in

Posted on 2009-04-06
6
1,367 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 23

Accepted Solution

by:
irudyk earned 500 total points
ID: 24096653
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
ID: 24104338
Thanks irudyk,
but I am not sure if it works in Shared add-in
0
 
LVL 23

Expert Comment

by:irudyk
ID: 24106758
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
ID: 24106854
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
ID: 31566994
I am closing this question.Appreciate ur effort of answering..Thanks.
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
Find out what you should include to make the best professional email signature for your organization.
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

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