Click here to Skip to main content
15,885,216 members
Home / Discussions / C#
   

C#

 
AnswerRe: I really need some help in C# (serious) Pin
realbadwolf14-Oct-09 21:02
realbadwolf14-Oct-09 21:02 
GeneralRe: I really need some help in C# (serious) Pin
Richard MacCutchan14-Oct-09 22:31
mveRichard MacCutchan14-Oct-09 22:31 
AnswerRe: I really need some help in C# (serious) Pin
Ashfield14-Oct-09 21:05
Ashfield14-Oct-09 21:05 
AnswerMy Vote of 1 Pin
Keith Barrow14-Oct-09 23:10
professionalKeith Barrow14-Oct-09 23:10 
AnswerRe: I really need some help in C# (serious) Pin
Wes Aday15-Oct-09 4:10
professionalWes Aday15-Oct-09 4:10 
QuestionCan Window service Read Log.txt file ,if yes then how? Pin
sunstate14-Oct-09 20:03
sunstate14-Oct-09 20:03 
AnswerRe: Can Window service Read Log.txt file ,if yes then how? Pin
SeMartens14-Oct-09 20:08
SeMartens14-Oct-09 20:08 
AnswerRe: Can Window service Read Log.txt file ,if yes then how? Pin
sunstate14-Oct-09 20:20
sunstate14-Oct-09 20:20 
I have created one text file in File Contain -> "abc or some value"
Account :LocaSystem
protected override void OnStart(string[] args)
{
if (!File.Exists("C:\\DevLog.txt")) {
EventLog1.WriteEntry("File Not Exist"); 5. }
else {
StreamReader sr = new StreamReader("C:\\DevLog.txt");
string tempstr = sr.ReadToEnd;
if (string.IsNullOrEmpty(tempstr)) {
}
else {
EventLog1.WriteEntry("Get File Name");
st = tempstr;
}
sr.Close();
}
}

the error msg is:---Service cannot be started. System.IO.FileNotFoundException: File not found.
I think you get clear idea about problem ...
Thank for reply
GeneralRe: Can Window service Read Log.txt file ,if yes then how? Pin
Ashfield14-Oct-09 21:09
Ashfield14-Oct-09 21:09 
GeneralRe: Can Window service Read Log.txt file ,if yes then how? Pin
sunstate15-Oct-09 0:07
sunstate15-Oct-09 0:07 
GeneralRe: Can Window service Read Log.txt file ,if yes then how? Pin
Ashfield15-Oct-09 1:29
Ashfield15-Oct-09 1:29 
GeneralRe: Can Window service Read Log.txt file ,if yes then how? Pin
Thomas Krojer15-Oct-09 0:01
Thomas Krojer15-Oct-09 0:01 
QuestionCan Window service Read Log.txt file ,if yes then how? Pin
ketanbparmar12345679814-Oct-09 20:00
ketanbparmar12345679814-Oct-09 20:00 
QuestionEnabling and Disabling Toolbar buttons.... Pin
hariakuthota14-Oct-09 18:05
hariakuthota14-Oct-09 18:05 
AnswerRe: Enabling and Disabling Toolbar buttons.... Pin
luisnike1915-Oct-09 6:25
luisnike1915-Oct-09 6:25 
QuestionInsert data from excel to access by using C# Pin
Nine_14-Oct-09 17:05
Nine_14-Oct-09 17:05 
AnswerRe: Insert data from excel to access by using C# Pin
Abhijit Jana14-Oct-09 17:15
professionalAbhijit Jana14-Oct-09 17:15 
GeneralRe: Insert data from excel to access by using C# Pin
Nine_14-Oct-09 19:01
Nine_14-Oct-09 19:01 
QuestionAppDomain Problem Pin
dataminers14-Oct-09 11:59
dataminers14-Oct-09 11:59 
AnswerRe: AppDomain Problem Pin
PIEBALDconsult14-Oct-09 13:29
mvePIEBALDconsult14-Oct-09 13:29 
AnswerIgnore repost Pin
Not Active14-Oct-09 14:41
mentorNot Active14-Oct-09 14:41 
AnswerRe: AppDomain Problem Pin
Not Active14-Oct-09 14:43
mentorNot Active14-Oct-09 14:43 
GeneralRe: AppDomain Problem Pin
dataminers14-Oct-09 21:19
dataminers14-Oct-09 21:19 
AnswerMy Vote of 1: Do not repost Pin
Keith Barrow15-Oct-09 1:14
professionalKeith Barrow15-Oct-09 1:14 
Questionwhere to chane the company name in vs2005 Pin
cjoki14-Oct-09 11:54
cjoki14-Oct-09 11:54 

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.