2

I have a .net application which access few dll at runtime. The issue is, when I run the application as administrator then it works fine else it fails some where without proper error.

  1. Can my application access these dll’s at run time without admin rights?

  2. Is there a way to determine what all components are making it to run as administrator?

2
  • 1
    What does "access" mean? In what way are you trying to "access" them? What is your app trying to do? You've provided absolutely no details that we can use to try and help you. If you want assistance, be specific about the problem you're having. Commented Aug 12, 2014 at 17:20
  • Could it be a failure to handle exceptions properly in your code? Have you tried running the application in the debugger with the debugger set to break on exceptions? Commented Aug 12, 2014 at 17:31

2 Answers 2

1

Only a handful of aspects in Windows strictly require Administrator privileges (i.e. installing a Windows Service), but Administrator privileges will grant you many lesser privileges - one of which is probably the reason your app works well when running as the Administrator.

You need to further investigate why your application fails. Try to run your application under a debugger and check which exception is thrown, and where. Otherwise, see if the logs (like those under the Event Viewer) and memory dumps (captured by Windows Error Reporting) contain some useful information.

Sign up to request clarification or add additional context in comments.

Comments

0

I'm running into a similar situation and while this was written for VS2003 targeting Windows XP and Windows Server 2003, it does provide some useful guidance: http://msdn.microsoft.com/en-us/library/aa289173(v=vs.71).aspx

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.