View Single Post
  #2  
Old June 27th 07, 09:50 AM posted to microsoft.public.outlook.program_addins
SvenC
external usenet poster
 
Posts: 11
Default app.config problem

Hi,

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


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

--
SvenC

Ads