?
Solved

Config file in Outlook add-in

Posted on 2009-04-06
6
Medium Priority
?
1,379 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 Bravo
  • 3
  • 2
5 Comments
 
LVL 23

Accepted Solution

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

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

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

As a Microsoft Exchange user, you must have known the importance of an Offline storage table (OST) file. It is nothing new for an Outlook user to be dependent on a .ost file during a server break down or a problematic Internet connection. In such a…
Organisation is organized in a pattern to flow the day to day business, every application and system is interdepended on each other and when very important “Exchange Server downtime” happened.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

593 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