I'm following along with http://msdn.microsoft.com/en-us/library/bb332338.aspx to host my service as a Windows service. It installs just fine, but I would like to actually set the recovery options to "Restart the Service" on a "First failure", "Second failure", or "Subsequent failure". How can this be achieved?
Along with my hosted Windows service's installer, is it possible to set the recovery options when errors occur?
1.6k Views Asked by Alexandru At
2
There are 2 best solutions below
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in WCF
- couldn't copy pdb file to another directory while consuming wcf web service
- Call wcf from android app
- WCF Service not accepting multiple body parameters
- Error in Calling some service in WCF Client
- WCF channel Factory caching
- How to convert a List<string> to an IEnumerable<ServiceReference.datatable> C# Silverlight WCF RIA Services LINQ to SQL
- WCF reusing types with inheritance - cannot generate client code
- System.ServiceModel.FaultException'1' Where might the error be?
- How to configure proxy address for multiple WCF-bindings at once?
- How pass XML from PHP to the Soap WCF service?
- Multiple service contract inter-commnication
- WCF Service not returning virtual property ServiceProvider
- How to get information about error from HttpContext in WCF services
- Using Service Bus to access On Premise WCF Service
- Test case for WCF REST Service
Related Questions in WINDOWS-SERVICES
- Quartz.net as service can't configure the quartz_job.xml
- Service is reporting "service has reported an invalid current state 0."
- Instrumenting windows service with Application Insights
- Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL)) on ChartObject.CopyPicture
- Is there a list of usual meanings to ServiceBase.ExitCode value?
- How do I use the windows service and WCF to update some record in database?
- Specify directory for Serilog rolling file path
- Architecture - Task Scheduling (Data File Processing) - Windows Service
- AppFabric hosting/management replacement
- Issue with installing service from code (access denied?)
- Windows Service "Service could not be started" from EventLog call
- Problems with Tomcat 8 running as a service on Windows Server 2008
- How to Start Windows Service As Administrator Privileges
- Set interval for Automatic (Delayed Start) Windows Services
- Using a FileSystemWatcher with Windows Service
Related Questions in SERVICEHOST
- WCF hostname is always 0.0.0.0
- The channeldispatcher is unable to open its ichannellistener
- WCF Winform freezes when opened by server
- WCF: How to stop myServiceHost.Close() from disposing of myServiceHost object?
- Along with my hosted Windows service's installer, is it possible to set the recovery options when errors occur?
- Add EvenLogging to an IHost container
- Can WCF hosted in Windows Service accessible over internet?
- Stop all application operation before ServiceHost closes or stops
- Self host WCF ServiceHost object lifetime
- WCF Launching host error
- Console hosted WCF service does not Trace
- Is Dispose neccessary for the class I put in ServiceHost
- WCF - Closing a duplex ServiceHost blocks for CloseTimeout duration if closed when client(s) connected
- Can AppDomainSetup.ConfigurationFile be loaded from database?
- Getting HTTPS to Work with WCF and a Windows Service
Related Questions in HOSTED
- Can I create a hosted SVN repository 'parallel' to my own on my office server?
- What is the best practice for creating a hosted PHP appliacation
- Problems with file upload when going from localhost to web host
- Along with my hosted Windows service's installer, is it possible to set the recovery options when errors occur?
- Setup a nexus "Site repository" as a mirror of an distant site
- Can I write a service that uses blazor webassembly server session and use this session object in the client side
- Self hosted project community alternatives
- iFrame Hosted Payments
- AuthenticationService.js:1 GET https://MYDOMAINNAME.co.za/_configuration/ProjectTest.Client 404
- Creating a hosted 'web form' for a user to authenticate via SAML
- how to access multiple endpoints
- How to backup your data with hosted issue tracking?
- XBAPs and MouseWheel events
- GWT hosted mode very slow
- How do you instantiate .NET hosted controls dynamically loaded via JavaScript?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The options for doing so are not simple, they require invoking some methods to pull it off. You could use something like the following extension, http://www.codeproject.com/Articles/6164/A-ServiceInstaller-Extension-That-Enables-Recovery or rolling your own using the commands.
See http://netcode.ru/dotnet/?lang=&katID=30&skatID=277&artID=7660 for more information