How-to diagnose and fix such "on-site" crash of dotnet application?
- by Dmitriy Matveev
Hello!
I'm working on some application which has auto-update function. The implemented idea is simple as following:
- There are some "starter" application which is installed to "Program Files/whatever/...". It's the application which is intended to be started by user.
- Each time the "starter" application is executed it checks server for updates and downloads it to "%APPDATA%/some/...". And then it starts some application from that folder.
Above approach is working on my development machine (running Vista) and on some other machines under XP, but under some different machine (running Windows 7) it isn't working. When "starter" executes the real application it crashes with some unknown problem (Signature = System.UnauthorizedAccess). When real application is executed manually from %APPDATA%/some/ folder then everything is working fine. I've tried to set same working directory in ProcessStartInfo, so "starter" will also execute real application in that folder, but this isn't helped me.
How can I diagnose and/or fix that issue?