Click here to Skip to main content
15,921,250 members
Home / Discussions / C#
   

C#

 
GeneralRe: WebBrowser and AxWebBrowser differences Pin
Member 465172918-Mar-09 0:40
Member 465172918-Mar-09 0:40 
GeneralRe: WebBrowser and AxWebBrowser differences Pin
led mike18-Mar-09 5:53
led mike18-Mar-09 5:53 
Questionsystem information Pin
shefa' isied17-Mar-09 3:08
shefa' isied17-Mar-09 3:08 
AnswerRe: system information Pin
Eddy Vluggen17-Mar-09 3:15
professionalEddy Vluggen17-Mar-09 3:15 
GeneralRe: system information Pin
shefa' isied17-Mar-09 3:24
shefa' isied17-Mar-09 3:24 
GeneralRe: system information Pin
Eddy Vluggen17-Mar-09 4:10
professionalEddy Vluggen17-Mar-09 4:10 
AnswerRe: system information Pin
musefan17-Mar-09 3:21
musefan17-Mar-09 3:21 
QuestionModifying Windows Service app.config file Pin
User 265531917-Mar-09 1:57
User 265531917-Mar-09 1:57 
Hi all,

I am developing a Windows Service. This Service connects to a database and on every timer_tick retrieves new records from a database. The ID of the last record retrieved is being saved to the app.config file using the code below:

private void UpdateConfigFile(Int32 lastIndex)<br />
{<br />
      Properties.Settings.Default.LastRecordId = lastIndex.ToString();<br />
      Properties.Settings.Default.Save();<br />
}


The service works fine and on every timer_tick it picks up only the new records from the database, but if I open the <projectname>.exe.conifg OR <projectname>.vshost.exe.config the LastRecordId value is always 0. It seems like it is storing and reading the config file from memory or something.

Any help would be greatly appreciated Smile | :)

modified 1-Oct-21 21:01pm.

AnswerRe: Modifying Windows Service app.config file Pin
Michael Bookatz17-Mar-09 2:35
Michael Bookatz17-Mar-09 2:35 
GeneralRe: Modifying Windows Service app.config file Pin
User 265531917-Mar-09 2:41
User 265531917-Mar-09 2:41 
GeneralRe: Modifying Windows Service app.config file Pin
Michael Bookatz17-Mar-09 2:54
Michael Bookatz17-Mar-09 2:54 
GeneralRe: Modifying Windows Service app.config file Pin
User 265531917-Mar-09 2:56
User 265531917-Mar-09 2:56 
AnswerRe: Modifying Windows Service app.config file Pin
Le centriste17-Mar-09 2:43
Le centriste17-Mar-09 2:43 
AnswerRe: Modifying Windows Service app.config file Pin
Simon P Stevens17-Mar-09 5:04
Simon P Stevens17-Mar-09 5:04 
QuestionSwitch Statement Help Pin
Paul Unsworth17-Mar-09 1:36
Paul Unsworth17-Mar-09 1:36 
AnswerRe: Switch Statement Help Pin
Pete O'Hanlon17-Mar-09 1:41
mvePete O'Hanlon17-Mar-09 1:41 
GeneralRe: Switch Statement Help Pin
Paul Unsworth17-Mar-09 1:42
Paul Unsworth17-Mar-09 1:42 
AnswerRe: Switch Statement Help Pin
DaveyM6917-Mar-09 1:41
professionalDaveyM6917-Mar-09 1:41 
AnswerRe: Switch Statement Help Pin
benjymous17-Mar-09 1:43
benjymous17-Mar-09 1:43 
QuestionC# Encryption and Decrypt in Java Pin
satsumatable17-Mar-09 1:02
satsumatable17-Mar-09 1:02 
AnswerRe: C# Encryption and Decrypt in Java Pin
SeMartens17-Mar-09 1:54
SeMartens17-Mar-09 1:54 
AnswerRe: C# Encryption and Decrypt in Java Pin
Mbah Dhaim17-Mar-09 7:08
Mbah Dhaim17-Mar-09 7:08 
QuestionProcess.Start() parameter with space char problem Pin
half-life17-Mar-09 0:48
half-life17-Mar-09 0:48 
AnswerRe: Process.Start() parameter with space char problem Pin
Eddy Vluggen17-Mar-09 1:07
professionalEddy Vluggen17-Mar-09 1:07 
GeneralRe: Process.Start() parameter with space char problem Pin
half-life17-Mar-09 1:39
half-life17-Mar-09 1:39 

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.