Possible Duplicate:
How to elevate privileges only when required?
After much debugging, turned out my application on a different computer was not working because it needed to run with administrative privileges (I have everything run as administrator on my computer). Rather than prompting for them, it threw an exception. I do direct sector access to disk in my application.
How do I get it to automatically show the 'run as administrator' when it needs it?
thanks..