Aap.config for windows service




















Saved my day! Also wrong or at least incomplete. NET apps user. According to Microsoft For client executables, the application configuration file resides in the same directory as the application's executable and has the same base name as the executable with a.

Tilak Tilak I installed it from System32 folder, but there is no file there that resembles an app. For example if service application is abc. Brandon Brandon The same place where your application Windows Service is. Check it out, if it's not there place it in the same directory as of service.

Kishore Kumar Kishore Kumar It just registers the windows service — Kishore Kumar. Michaelb Michaelb 1. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.

Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science.

Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Linked Related Add a Solution. Top Rated Most Recent. Accept Solution Reject Solution. You can make use of custom configuration sections and then read it using ConfigurationManager class. You do not need to recompile anything if you change only the values in the custom configuration properties.

If you change the section structure itself, you need to re-deploy. Also, you will need to restart the service to read the new values. Update: It is same as you would do for the windows form. Check out MSDN for custom configuration section example. It is there. Posted Aug am dan! YSridhar Aug am. Can u provide any sample code or steps for, how to use config file in windows service. You could just watch for changes to the config file with a FileSystemWEatcher object, and then re-read the file when a change has been detected.

You can write a simple console application to make it easier to debug, and then move the debugged code into your windows service. Add your solution here. OK Paste as. Treat my content as plain text, not as HTML.

Existing Members Sign in to your account. This email is in use. Ask a question. Quick access. Search related threads. Remove From My Forums. Asked by:. Archived Forums.

Getting Started with ASP. NET question on a topic that's not covered by one of the other more specific forums - ask it here.

Sign in to vote. User posted Can any one tell me the answer?



0コメント

  • 1000 / 1000