Console application fails to restart

127 views
Skip to first unread message

zam...@gmail.com

unread,
Mar 20, 2013, 5:47:15 PM3/20/13
to nappu...@googlegroups.com
Hi

I have a simple console app that tryies to update itself.
During cold update process, the application fails to restart and following log is available:


3/20/2013 17:39:13.186   Debug Creating Temp directory C:\Users\dev\AppData\Local\Temp\fb6ef3c5-f28f-4c6f-97c2-b787023efba1
3/20/2013 17:39:13.188   Debug FileUpdateTask: Downloading Demo.Miscellaneous.NAppUpdate.exe with BaseUrl of https://my.company.com/updates/sample/ to C:\Users\dev\AppData\Local\Temp\fb6ef3c5-f28f-4c6f-97c2-b787023efba1\8b72cf13-dcbb-4c9d-a260-0fef69bc6e8f
3/20/2013 17:39:13.210   Debug FileUpdateTask: Prepared successfully; destination file: X:\Repositories\GitHub\NAppUpdate\Demo.Miscellaneous.NAppUpdate\bin\Release\Demo.Miscellaneous.NAppUpdate.exe
3/20/2013 17:39:17.987   Debug Starting to process cold updates...
3/20/2013 17:39:17.990   Debug Update process name: 'NAppUpdateProcess'
3/20/2013 17:39:17.994   Debug Loading C:\Users\dev\AppData\Local\Temp\fb6ef3c5-f28f-4c6f-97c2-b787023efba1\foo.exe
3/20/2013 17:39:17.996   Debug Skipping (part of current execution)
3/20/2013 17:39:17.997   Debug Loading C:\Users\dev\AppData\Local\Temp\fb6ef3c5-f28f-4c6f-97c2-b787023efba1\NAppUpdate.Framework.dll
3/20/2013 17:39:17.999   Debug Skipping (part of current execution)
3/20/2013 17:39:18.111   Debug The application has terminated (as expected)
3/20/2013 17:39:18.113   Debug Got 1 task objects
3/20/2013 17:39:18.114   Debug Task "Update demo executable.": RequiresAppRestart
3/20/2013 17:39:18.116   Debug Executing...
3/20/2013 17:39:18.128   Debug Finished successfully
3/20/2013 17:39:18.138   Debug Removing backup folder
3/20/2013 17:39:18.140   Debug Re-launching process X:\Repositories\GitHub\NAppUpdate\Demo.Miscellaneous.NAppUpdate\bin\Release\Demo.Miscellaneous.NAppUpdate.exe with working dir X:\Repositories\GitHub\NAppUpdate\Demo.Miscellaneous.NAppUpdate\bin\Release
3/20/2013 17:39:28.859   Error
Unable to relaunch application and/or send DTO
   at NAppUpdate.Updater.AppStart.Main()

Itamar Syn-Hershko

unread,
Mar 20, 2013, 6:20:18 PM3/20/13
to nappu...@googlegroups.com
Does it work if you have it outside of VS environment?


--
You received this message because you are subscribed to the Google Groups "NAppUpdate" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nappupdate+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

zam...@gmail.com

unread,
Mar 20, 2013, 6:59:37 PM3/20/13
to nappu...@googlegroups.com
Yes. Looks like that was it...But how do I debug then :) ?

Adam Zamojski

unread,
Mar 21, 2013, 3:43:15 AM3/21/13
to nappu...@googlegroups.com

Debugger.Break(); should help :)

Reply all
Reply to author
Forward
0 new messages