How-to diagnose and fix such "on-site" crash of dotnet application?
Posted
by Dmitriy Matveev
on Stack Overflow
See other posts from Stack Overflow
or by Dmitriy Matveev
Published on 2010-06-14T19:11:09Z
Indexed on
2010/06/14
19:22 UTC
Read the original article
Hit count: 209
.NET
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?
© Stack Overflow or respective owner