![]() |
app.config problem
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 |
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 |
app.config problem
"SvenC" wrote: 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 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 |
All times are GMT +1. The time now is 09:11 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com