A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

app.config problem



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 27th 07, 12:12 AM posted to microsoft.public.outlook.program_addins
Tinchonny
external usenet poster
 
Posts: 2
Default 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
Ads
  #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

  #3  
Old June 28th 07, 09:50 PM posted to microsoft.public.outlook.program_addins
Tinchonny
external usenet poster
 
Posts: 2
Default 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

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Picture config Anthony Outlook - Installation 1 June 7th 07 04:00 PM
config problem - outlook failed to register a vbscript.dll brij Outlook - Installation 0 April 4th 07 01:02 PM
sent items config [email protected] Outlook - Fax Functions 3 February 9th 07 11:22 PM
what is a 553 5.3.5 config. error HVAC1952 Outlook - Installation 1 May 18th 06 03:44 PM
PRF config Jared Outlook - Installation 1 March 24th 06 06:26 PM


All times are GMT +1. The time now is 09:24 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-2025 Outlook Banter.
The comments are property of their posters.