Application Restart and Recovery APIs doesn't work for windows services

I am using the Application Restart and Recovery mechanism (provided in Windows API Code Pack for Microsoft.NET Framework) to collect some information (i.e. stack information when there's an unhandledexception)  before my windows service crash down.
It works well for windows form applications, but the callback method wouldn't be called if the host is a windows service. 
I have checked the article: https://msdn.microsoft.com/zh-cn/subscriptions/downloads/cc303708
But it doesn't specify clearly whether it works for a windows service. It seems that the recovery will only be activated when the user interacts with the error dialog of Windows Error Reporting (clicking "close" on the dialog, for example).
So I am wondering is my guess right that the Application Restart and Recovery mechanism doesn't work for windows services. Or is there a better way to meet my requirement? 

I would suggest trying ARR if that's what you want to use.  The restart portion won't work, but it doesn't need to as if you fail out of your service, the Windows service controller will handle recovery (up to and including restarting your service).
 You configure those recovery actions either through code or one of the built in administrative tools for services such as services.msc.  
DebugDiag/ADplus and similar tools ultimately do use built-in APIs; you don't need to add anything external to collect debugging information.  You do however have to write a good deal of code to do somethings.  It's pretty simple to use the unmanaged
function that I pointed out before and
MiniDumpWriteDump to write a minidump when you hit an unexpected error(the dbghelp.dll that comes installed with Windows has it so you don't need anything additional installed).  You can even write a basic debugger that literally debugs a process using
only kernel32 functions (see
https://msdn.microsoft.com/en-us/library/windows/desktop/ms679301(v=vs.85).aspx if you're interested).  
WinSDK Support Team Blog: http://blogs.msdn.com/b/winsdk/

Similar Messages

  • HT201263 Unable to update, restore or recover. Slider doesn't slide and number pad doesn't work for passcode. What next? Worked last night . Battery charged. When I push Home button I get my backgroung but can't slide slider. Device is recognized by iTune

    Unable to update, restore or recover. Slider doesn't slide and number pad doesn't work for passcode. What next? Worked last night . Battery charged. When I push Home button I get my backgroung but can't slide slider. Device is recognized by iTunes.Help! Thank you.

    Besweet, I'm having the very same problem with 60GB colour which was bought new and worked for 6 months before suddenly just not being recognised by PC. I hadn't changed anything at all.
    I've followed all troubleshooting advice and reinstalled and updated iTunes and iPod updater software but all troubleshooting routes seem to hit the dead end of either the need to access the iPod via the PC (which isn't possible as it's not showing up at all) or the iPod in disc mode stuck at "ok to disconnect".
    It's still under 1yr warranty so will have to take to a dealer.
    I'm sorry that's not much help for you but at least you know it's not a unique problem.
    PC   Windows XP  

  • HT4527 How on earth do you get Home Sharing to work properly?  We have tried multiple times and it simply doesn't work for us!

    How on earth do you get Home SHaring to work?  We have tried numerous times and it simply doesn't work for us!

    Turn it on.
    Honestly, if you want help it is generally a good idea to ask a specific question and give some details of what problem is occurring.
    If trying to move media, using home sharing is simply a bad idea.  Follow some of the other instructions in the article from which the question was posted to move media.

  • Windows 8.1 Dell Backup and Recovery exe doesn't work

    I purchased dell Inspiron 3542, initially when i click on Dell backup and recovery then it was moving to create backup page. I install some software and transfer some data in my laptop, after this dell backup and recovery is not working. Not able to create backup in usb.
    When i click on dell backup and recovery then it ask me for permission when i click on yes, nothing happen.
    Any suggestions?

    Uninstall it.  Reboot.  Then install.  Reboot.
    All of this should be done as Run as Administrator or it will fail.
    16GIG or Larger usb flash drive is required.  8 gigs is too small.
    http://www.dell.com/support/home/us/en/19/Drivers/DriversDetails?driverId=8HY96

  • Jdev11g CPU profile and Memory Profile doesn't work for Mac

    I'm running Jdev11g on Mac OSX 10.5.5,
    CPU Profile and Memory Profile doesn't work. I got following message:
    Error occurred during initialization of VM
    Could not find agent library in absolute path: /Shared/jdevjavabase11110/jdeveloper/jdev/lib/profiler16.so
    The file actually is there. I don't understand why they looking for .so file, it supposed to be mapped as .jnilib on Mac.
    This is broken on TP4 as well.

    I'm still seeing this issue. Here is what I get:
    /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -client "-agentpath:/Users/kamleshnanda/Downloads/jdeveloper/jdev/lib/profiler16.so=port=60950,jarpath=/Users/kamleshnanda/Downloads/jdeveloper/jdev/lib/profiler-agent.jar,enable=t,depth=1000,startup=connect,time" -classpath /Users/kamleshnanda/jdeveloper/mywork/MyJavaApplication/Project1/classes project1.Class1 Hello
    Error occurred during initialization of VM
    Could not find agent library in absolute path: /Users/kamleshnanda/Downloads/jdeveloper/jdev/lib/profiler16.so
    Process exited with exit code 1.
    I'm using the following build:
    About
    Oracle JDeveloper 11g Release 1 11.1.1.2.0
    Java Edition Version 11.1.1.2.0
    Build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536
    Copyright © 1997, 2009 Oracle and/or its affiliates. All rights reserved.
    IDE Version: 11.1.1.2.36.55.36
    Product ID: oracle.jdeveloper
    Product Version: 11.1.1.2.36.55.36
    Version
    Component     Version
    =========     =======
    CVS Version (External)     (CVS) 1.12.13 (client/server)
    Java(TM) Platform     1.6.0_17
    Oracle IDE     11.1.1.2.36.55.36
    PMD     JDeveloper Extension 4.2.5.3.0
    Team Productivity Center     11.1.1.2.36.55.36
    Versioning Support     11.1.1.2.36.55.36
    Here are the JVM properties:
    java.runtime.name     Java(TM) SE Runtime Environment
    java.runtime.version     1.6.0_17-b04-248-10M3025
    java.specification.name     Java Platform API Specification
    java.specification.vendor     Sun Microsystems Inc.
    java.specification.version     1.6
    java.vendor     Apple Inc.
    java.vendor.url     http://www.apple.com/
    java.vendor.url.bug     http://bugreport.apple.com/
    java.version     1.6.0_17
    java.vm.info     mixed mode
    java.vm.name     Java HotSpot(TM) 64-Bit Server VM
    java.vm.specification.name     Java Virtual Machine Specification
    java.vm.specification.vendor     Sun Microsystems Inc.
    java.vm.specification.version     1.0
    java.vm.vendor     Apple Inc.
    java.vm.version     14.3-b01-101
    Here is the OS information:
    os.arch     x86_64
    os.name     Mac OS X
    os.version     10.6.2

  • Oracle client 9i doesn't work for windows ordinary user

    Hello All,
    I've installed oracle 9i client on windows xp. Client software works for user belonging to windows administrators group. it doesn't works for ordinary users not belonging to administrators group. Particularly when i run sqlplus from command line i get following error :
    Incorrect environment variable PLUS_DFLT
    Program execution error.
    i also need access to Oracle ODBC driver.
    When i try to configure ODBC source (created by user with administrator privileges) by common user i get following errors :
    The setup routines for Oracle for Oracle in OraHome9i ODBC driver couldn't be loaded due to system error code 5
    Could not load the setup or translator library
    Very appreciate for any help.
    Regards Arkadiusz Masny

    It sounds like the users on the machine do not have access to the Oracle home directory. Check the permissions of the folder by right properties, select the user and check that they have read and then select advanced. Tick the "replace permission entries....." box and apply. This will re apply all user rights in all folders and subfolders. Try again.
    HTH Mark F

  • Recovery partition and Recovery disk doesn't work

    I have HP Pavilion dv6000 Windows Vista Home Premium with Recovery Partition at drive D:\. Here is my problem. I want to use the System Recovery to put my PC to its default setting, I have use Recovery Manager, but System Recovery does not work. I have also use a recovery disk, but nothing works. Using the Recovery disk, while the recovery is in process formatting the windows partition, and the process reaches 33%, a windows error pop-out (Error: ox4001100200001005). I need help because my laptop is unstable and I cannot work.
    Yours truely,
    colorlime

    Enter BIOS setup by tapping/holding the F10 key immediately after powering on the laptop.Use Diagnostics to test your hdd.
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • Drag and Drop Apps to and from Dock, doesn't work for one account?

    Hi there,
    I have 2 accounts on my Macbook, one of them is my main account which is admin and nothing is wrong with it. The second account though is also admin but I cannot drag and drop applications to and from the dock. I can open the program, hold left click down till it pops up with options and in which you can untick Keep in Dock. Which would be fine but as soon as the computer restarts or I log out then in again, the application reappears. Any help or ideas would be much appreciated.
    Note that I have deleted both plist files from library/preferences and I have also enabled parental controls and ticked the allow users to modify the dock option. I also tried downloading Onyx and setting it up through there but it was a no go. Anyway, if anyone has any idea then that would be awesome.
    Cheers

    TheArtieChoke wrote:
     The second account though is also admin but I cannot drag and drop applications to and from the dock.
    Ok, you can drag applications from your Applications and Utilities Folders to make a "alias" (aka shortcut) in the Dock, but if you drag the icon off and drop it, it "poof's" away as your deleting the alias. The program itself isn't in the Dock at all at any time.
    TheArtieChoke wrote:
    I can open the program, hold left click down till it pops up with options and in which you can untick Keep in Dock. Which would be fine but as soon as the computer restarts or I log out then in again, the application reappears.
    Right, when you run a program from where ever, it places a alias icon in the Dock, which you then right click and choose to keep the alias in the Dock which survives reboots and logouts/in as normal.
    If you right click and choose "open at log-in" the program will automatically run when you restart or log back into the account.
    TheArtieChoke wrote:
    Note that I have deleted both plist files from library/preferences and I have also enabled parental controls and ticked the allow users to modify the dock option. I also tried downloading Onyx and setting it up through there but it was a no go. Anyway, if anyone has any idea then that would be awesome.
    I don't see any problem, other than your not knowing the icons in the Dock are aliases.
    You should set the same user controls and preferences on the second admin as the first and your problems should disappear.
    OnyX is a great program, I recommend it highly, but I don't see it fixing your problem in this case. Unless there is something your not being clear on.

  • Kuler API doesn't work with Windows 8 apps

    Hi, I've been trying to get the Kuler API to work with my app for Windows 8 (I'm using C# and XAML). For example:
    string feed = await client.GetStringAsync("https://kuler-api.adobe.com/rss/get.cfm?listType=" + type + "&itemsPerPage=" + items + "&timeSpan=" + timeSpan + "&key=" + key);
    However this throws a Http Request Excepion and tells me: "The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF".
    This request worked absolutely fine a while ago but now it throws that exception. If I paste the url into a web browser like Chrome it works fine because Chrome ignores errors like this. Is there any way of fixing this problem? Thanks.
    Edit: if the issue can't be resolved, can anyone give an update as to when the new API system is going to be in operation? I haven't heard anything since May and it's now July.

    See:
    *https://support.mozilla.org/kb/windows-media-or-other-plugins-stopped-working
    There has been a change in where Firefox searches for plugins and the plugins folder in the Firefox program folder is no longer scanned for plugins, so Firefox won't find them anymore if they are installed in the plugins folder instead of the "browser\plugins" folder that Firefox now scans.
    You can set the plugins.load_appdir_plugins pref to true on the about:config page to make Firefox scan the "<install>/plugins/" directory for plugins like the WMP plugin (np-mswmp.dll).
    You can alternatively move plugins from "<install directory>\plugins\" to "<install directory>\browser\plugins\" (create this folder when missing) to make Firefox find them again.
    *http://www.ghacks.net/2013/05/15/why-you-may-have-lost-access-to-plugins-or-extensions-in-firefox-21/
    *http://mike.kaply.com/2013/04/24/major-changes-coming-in-firefox-21/

  • Problem with my touch screen. It works for 1 or 2 minutes and then it doesn't work for 2 or 3 minutes !!

    hi everybody
    I have a problem with my touch screen. It works for 1 or 2 minutes and then it stops working for 2 or 3 minutes, this is a loop ! if I don't use for a couple of hours it will work more, about 15 minutes and then stops working !!! whats wrong with may iphone, which part is damaged ?:(
    ( when touch screen stops working, all keys work correctly, home key & others )
    please help me

    oh
    finally problem solved
    the finger touch part was damaged, they replaced it with a new one and now I have my iphone 4g as it was at first, brilliant like always

  • My Mic Doesn't Work for Windows 7!

    My laptop Model is a Satellite M305-S4910 I just last week got my laptop upgraded to Windows 7, but when I use video chat on MSN Messenger or Skype or any type of Audio Recording it doesn't work, or when chatting it seems like my voice is from a far distance, Please I need help, It's the only why for me and my boyfriend to talk from overseas, I really need this mic to work Please help me
    Thank You

    Thanks Chen, but still the same result. 
    I'll narrow down the scenario(actually two scenarios) as per the way it's behaving on Windows 7 machines.
    Case - 1
    1. I do a SetEnvironmentVariable remotely.
    2. I go to that remote machine and search in advanced settings -> system env variables window. Dont click on the OK Button.  Close these windows.
    Result: Yes it is there as an entry.
    3. I open up a command prompt and type 'set'
    Result: No it is not set.
    4. Again open up advanced settings -> system env variables window. Click on the OK Button.  Close these windows.
    5. Now open up a command prompt window and type 'set'
    Result: It is set now
    Case 2:
    1. I do a SetEnvironmentVariable remotely.
    2. I go to that remote machine and search in advanced settings -> system env variables window. Dont click on the OK Button.  Close these windows.
    Result: Yes it is there as an entry.
    3. I open up a command prompt and type 'set'
    Result: No it is not set.
    4. I do a system restart.
    5. Open up a command prompt and type 'set'
    Result: It is set now
    Any idea why this is behaving like this(more or less like setting a user level env variable), please  ? I've to some way get through this obstacle to advance further. Thanks a lot for the support

  • DVD software doesn't work for Windows 8

    I bought a new Lenovo Slim USB Portable DVD Burner. With the drive came the following software: BurnNow, DVD Movie Factory, WinDVD. Unfortunately that software will work in Windows 7, but it won't install in Windows 8. How can I get the software for Windows 8?

    You can try setting the installer (and then the application .exe's) to run in compatibility mode. See this for more:
    http://www.online-tech-tips.com/windows-8/run-a-pr​ogram-in-compatibility-mode-in-windows-8/
    Note: If you don't get the Compatibility tab on the Properties for the installer apps, try copying them to a folder on a local drive first and running them from there.

  • Graphic card driver update doesn't work for Windows 8.1 upgrade (Ideapad Y500)

    I upgraded my windows 8 to Windows 8.1 today and it probably is a huge mistake. After the upgrade my Ideapad Y500 started to look weird (Firefox stopped working). I searched around for solution and was told that I probably need to upgrade the driver to my graphic card. So I went to the driver download page and downloaded the NVIDIA GeForce GT750M Second VGA BIOS Update for Windows 8.1
    I followed the instruction to run the "Winflash_Yx00s.bat" file, but after I seleted "yes" to let it modify the system, there is a very fast flashing a little black window (too fast for me to see what it is), and nothing happens afterwards. I checked to make sure that nothing is running in the background. After waited for half an hour I tried to restart the computer and still nothing happens. The display still looks weird. 
    Please help me!

    when I read posts like yours I often do the test myself
    so I went into skype both metro and desktop skype and to my horror like you I did not have the option only my logitech webcam was an option
    I went into devices and see that ht had FaceTimeHD camera (Built-in) as malfunctioning not working devices there
    I went to my bootcamp driver zip and ran the apple AppleCamera64.exe
    but little did it help then I googled it
    https://www.google.dk/search?q=bootcamp+facetime+hd+camera+driver&oq=bootcamp+fa cetime+hd+camera+&aqs=chrome.1.69i57j0.9286j0j8&sourceid=chrome&es_sm=93&ie=UTF- 8
    came across this post at ms
    http://answers.microsoft.com/en-us/windows/forum/windows_8-hardware/facetime-hd- camera/0ef43e8a-45bc-4797-99f7-c57848b9f2bb
    did the uninstall of both of the unknown devices as suggested and ran a scan for new hardware and bam!
    the camera was back in action
    suppose looking like a gobling shark made it so I never noticed that win8.1 had broken my facetime cam before you brought it up

  • Windows XP Quicktime doesn't work for Windows XP!!!

    Ok. I bought Quicktime PRO for windows since it had features like looping.
    But... it does not play wmv files!!!
    The ultimate insult is that there is a wmv plugin for MAC version of quicktime.
    And there's no obvious way to rant directly to Apple, or get my money back.
    I do see that there has already been one post on this with no answer... thought I'd try again

    QuickTime Player can't open Windows Media Player formats. It never could and you should have seen that when reading the Web page carefully.
    The plug-in for Mac users is endorsed by Microsoft and is intended to replace the Windows Media Player for Mac. Microsoft hasn't updated WMP for Mac since 2003 and has discontinued it.
    Flip4Mac is third party software that enables most WMP formats be played via QuickTime. Ask them to write a Windows version.

  • HT5219 Thunderbolt port devices and ethernet cables doesn't work under Windows 7 or 8 via Boot Camp unless I restart my computer... how are the apple developers so dump to not realize this mistake

    How can you not resolve a problem so essentail related to swapping thunderbolt devices when running bootcamp? Everytime I diconnect a thunderbolt device, I have to restart in bootcamp for the mackbook pro to recognize it. Considering that I apid ~$3K for this laptop when I could have got a dell for half the price, it such a poor technology. How can apple developers be so dump that they didn't design a drive to resolve the issue... and to make it even more dumber, they acknowledge it ... hello any one with brains after steve jobbs passed away there!!!

    I don't have a Thunderbolt machine but according to this article, Windows doesn't support Thunderbolt at all. That means Apple had to add Thunderbolt support in order for it to work even as it does. How would a Dell have solved your problem?
    http://www.zdnet.com/more-thunderbolt-on-windows-compatibility-lessons-for-mac-o wners-7000021314/

Maybe you are looking for

  • 2013 27" iMac, can you have THREE 27" screens NOT mirrored?

    Straightforward question: Say you have the BRAND NEW 2013 27" iMac Say you have TWO of the 2013 brand new, thunderbolt 27" external monitors. YES you can plug in both the monitors, giving you "three displays" HOWEVER Can you run this as THREE LOGICAL

  • Error msge - table

    Hi, Is there any table which will contain all the error  mssge?? and is it possible to upolad the error msge thru table, if yes, let me knw the table name

  • How to add search help for standard field LIKP-TRAID

    Hi friends, How to add search help for standard field LIKP-TRAID , refer screen Program Name       SAPMV50A   Screen Number      2108       TrnsIDCode ( LIKP-TRAID ) .. I need to add a search help, so that i can retrieve data from Ztable. Thanks. Abh

  • VF01/VF04 Custom enhancement

    Dear Experts, We got requirement where in we have to copy VF04 selection screen (<b>SCREEN #1</b>), add additional fields and filter output based on the selection criteria. Out put of this selection will be ALV out put <b>SCREEN #2</b>) where all lin

  • Installing wine in x86_64 [SOLVED]

    I have some trouble installing bin32-wine from AUR on my x86_64 Arch machine. I downloaded the tarball and extracted it, then I ran makepkg in that folder and got a message about missing dependencies (lib32-...). I've fixed some dependencies, but the