Click here to Skip to main content
16,007,687 members
Home / Discussions / C#
   

C#

 
GeneralRe: Write entries to a text file--Need Help!! Pin
mabby21625-Jun-08 3:43
mabby21625-Jun-08 3:43 
GeneralRe: Write entries to a text file--Need Help!! Pin
leppie25-Jun-08 3:52
leppie25-Jun-08 3:52 
GeneralRe: Write entries to a text file--Need Help!! Pin
Ashfield25-Jun-08 3:48
Ashfield25-Jun-08 3:48 
Questionftp connection c# Pin
laziale25-Jun-08 2:40
laziale25-Jun-08 2:40 
AnswerRe: ftp connection c# Pin
Abhijit Jana25-Jun-08 2:42
professionalAbhijit Jana25-Jun-08 2:42 
Questionhow to define coclass in c# com object? Pin
iman_kh25-Jun-08 2:38
iman_kh25-Jun-08 2:38 
AnswerRe: how to define coclass in c# com object? Pin
Mohammad Dayyan25-Jun-08 10:51
Mohammad Dayyan25-Jun-08 10:51 
Questionapp.config Pin
arkiboys25-Jun-08 2:32
arkiboys25-Jun-08 2:32 
Hi,
I am using VS2008 and I am trying to access the appSetting value inside the app.config file.

This GetSetting method returns null but there is value in the app.config file?
Any thoughts please?

This is what I am doing:

string logFilePath = Util.GetSetting("LOGFILENAME");

public static string GetSetting(string val)
{
try
{
return ConfigurationSettings.AppSettings[val];
}
catch (Exception ex)
{
return "";
}
finally
{
}
}

--------------
App.Config file contains:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="LOGFILENAME" value="C:\Work\Developments\Services\LogFile\Log.txt" />
<add key="ERRORLOGFILENAME" value="C:\Work\Developments\Services\ErrorLogFile\Log.txt" />
<add key="PATHTOWATCH" value="C:\Work\Developments\" />
</appSettings>
</configuration>
AnswerRe: app.config Pin
SteveNY25-Jun-08 3:39
SteveNY25-Jun-08 3:39 
GeneralRe: app.config Pin
arkiboys25-Jun-08 3:46
arkiboys25-Jun-08 3:46 
GeneralRe: app.config Pin
Ashfield25-Jun-08 3:52
Ashfield25-Jun-08 3:52 
AnswerRe: app.config Pin
Marek Grzenkowicz25-Jun-08 3:46
Marek Grzenkowicz25-Jun-08 3:46 
QuestionHow Power Point slides picture can be tranfer to word document picture one by one. Pin
haroon_calculus25-Jun-08 1:52
haroon_calculus25-Jun-08 1:52 
QuestionAdd a control in Visual Studio 2008 IDE? Pin
Harvey Saayman25-Jun-08 1:39
Harvey Saayman25-Jun-08 1:39 
AnswerRe: Add a control in Visual Studio 2008 IDE? Pin
Christian Graus25-Jun-08 1:43
protectorChristian Graus25-Jun-08 1:43 
GeneralRe: Add a control in Visual Studio 2008 IDE? Pin
Harvey Saayman25-Jun-08 1:57
Harvey Saayman25-Jun-08 1:57 
GeneralRe: Add a control in Visual Studio 2008 IDE? Pin
leppie25-Jun-08 2:02
leppie25-Jun-08 2:02 
GeneralRe: Add a control in Visual Studio 2008 IDE? Pin
Harvey Saayman25-Jun-08 2:09
Harvey Saayman25-Jun-08 2:09 
GeneralRe: Add a control in Visual Studio 2008 IDE? Pin
leppie25-Jun-08 2:12
leppie25-Jun-08 2:12 
QuestionMultithreading program! Pin
TaiZhong25-Jun-08 1:17
TaiZhong25-Jun-08 1:17 
AnswerRe: Multithreading program! Pin
Ashfield25-Jun-08 1:30
Ashfield25-Jun-08 1:30 
GeneralRe: Multithreading program! Pin
TaiZhong25-Jun-08 1:57
TaiZhong25-Jun-08 1:57 
GeneralRe: Multithreading program! Pin
leppie25-Jun-08 2:06
leppie25-Jun-08 2:06 
GeneralRe: Multithreading program! Pin
TaiZhong25-Jun-08 3:37
TaiZhong25-Jun-08 3:37 
GeneralRe: Multithreading program! Pin
SteveNY25-Jun-08 3:48
SteveNY25-Jun-08 3:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.