Results 1 to 3 of 3

Thread: app.config question

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2003
    Posts
    40

    app.config question

    I am developing and testing a VB.NET windows service using a app.config files. As you know, when compiled a .config.exe is created. I started up the service, shut it down then went into the config.exe file to change a setting. Restarted the service, but the change I was expecting did not occur. Am I doing this wrong?

    Note that I am doing this all on the same machine.

    Thanks

  2. #2
    Hyperactive Member scuzymoto's Avatar
    Join Date
    Aug 1999
    Location
    Washington State
    Posts
    316
    I to have a .NET app running on a server as a service. Occasionally I have to change settings in the exe.config file as well. I do basically what you did. Stop the service, change the exe.config file, and then restart the service. For me this has always worked so I would venture a guess that the problem isn't with the config file.

    Just in case, I might try unistalling the service, reinstalling the service to see if that shakes it loose. If your still not having luck then it might be a code problem not reading in the setting right.
    SCUZ

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2003
    Posts
    40

    Found out the problem

    I had a bit of bad advice from a co-worker on how to set this up.
    (He's usually dead-on so I will let it slide I found the correct way by doing a web search. I was trying to create the exe.config via coding when I should have been writing the app.config file and compiling to a exe.config. All is ok.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width