Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / June 2007

Tip: Looking for answers? Try searching our database.

app.config problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tinchonny - 26 Jun 2007 23:12 GMT
i have an Add-in on Visual studio 2003, i added an app.config file and i add
this code:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <appSettings>
        <add key="NAME" value="MONITOR.TXT"/>
    </appSettings>
</configuration>

in the code of the Connect.cs file i try to read thi value
string name = ConfigurationSettings.AppSettings.Get("NAME");

the result is allways an empty string, how can i read this value
SvenC - 27 Jun 2007 08:50 GMT
Hi,

> i have an Add-in on Visual studio 2003, i added an app.config file
> and i add this code:
[quoted text clipped - 10 lines]
>
> the result is allways an empty string, how can i read this value

Was the app.config copied to the executables directory and named
yourAppName.exe.config

--
SvenC
Tinchonny - 28 Jun 2007 20:50 GMT
> Hi,
>
[quoted text clipped - 21 lines]
>the outlook add-in don't have executables files (.exe), only dll, and for that reason i can't do it
> Do you have anoter tip
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.