Solved

Config file in Outlook add-in

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

What does UTC stand for?  “Coordinated Universal Time” – Think of this as the true time on Planet Earth that never changes with the exception of minor leap seconds here and there to account for the changes in the planet's rotation.   What does th…
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
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…
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…

839 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