Solved

Config file in Outlook add-in

Posted on 2009-04-06
6
1,369 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
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…

617 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