AutomaticUpdate - unexpected system reboot

Hello,

I have a problem with automatic update. I'm using automatic update with .NET wpf service. When updating process is ending i receive a message that my process was closed unexpectedly and i system must reboot. I'm trying to implement on windows XP embedded. Could someone tell me what could be wrong, maybe windows xp embedded isnt supported for wyday automatic update.

There's not nearly enough information to help you. Tell me:

1. What exception happened?

2. Does wyUpdate run on its own (that is, does running wyUpdate.exe as a standalone updater work?)

3. What does your event log say the reason for the system reboot was?

1. What exception happened?There isnt any exception which could invoke this problem.

2. Does wyUpdate run on its own (that is, does running wyUpdate.exe as a standalone updater work?)It's a part of onstart method in service. I dont use other threed to handle update.

3. What does your event log say the reason for the system reboot was?I have a safety condition in service which forces reboot every third incorrect stopping service. When i invoke update 3 times within a day it will cause reboot of system with message: "This system is shutting down. Please save all work in progress and log off. Any unsaved changes will be lost. This shutdown was initiated by NT AUTORITHY\SYSTEM"

So i know the reason of rebooting but i dont know why automatic update causes service incorrect stop. Maybe my service stopping too long and automatic update stopping it immediately. I tried two ways of wyupdate: from command prompt and using wyupdate component. When i was using command prompt version of wyupdate i write a result of update to log and i have message that one process cannot be stopped and that was my service. When i was using wyupdate .NET class i have problem with each third update attempt within one day. So if you have some ideas what will be solution for my problems send me an email: misiaqu@gmail.com. Thanks for any help.

2. Does wyUpdate run on its own (that is, does running wyUpdate.exe as a standalone updater work?)
It's a part of onstart method in service. I dont use other threed to handle update.

No, I'm asking you to run wyUpdate.exe by double clicking it. Tell me if you get the same problem. The system reboot might be due to something other than wyUpdate (for instance your service might be crashing and taking the system down with it).

So i know the reason of rebooting but i dont know why automatic update causes service incorrect stop.

Ok, I see what the problem is. You're going to have to use the "CloseAppNow" event to stop your service (read more about it here).

That'll solve your problem.

Tell me if you have any questions.