Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all,

Here am developed one window application. It will run exactly at Administrator user. But it couldnt run in other switch users here i dont get any error.So i need the solution for this problem.


Thanks in Advance

Dhinesh Kumar.V
Posted
Comments
OriginalGriff 4-Jul-12 3:43am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Use the "Improve question" widget to edit your question and provide better information.
Dhinesh kumar.V 4-Jul-12 4:10am    
ok sir. now explain brief. i developed one application for hide removable disk. Here my setup successfully run at Administrator account but am go switch user account(limited user account) my application cant work. but i didnt got any error also.

1 solution

Add the following to your Main() and it will save any error messages to disk.
C#
public static void Main()
{
   try
   {
       // your normal code here
   } 
   catch(Exception ex)
   {
      System.IO.File.WriteAllText("error.txt", ""+ex);
   }
}
 
Share this answer
 
Comments
Dhinesh kumar.V 4-Jul-12 5:12am    
i developed one application for hide removable disk. Here my setup successfully run at Administrator account but am go switch user account(limited user account) my application cant work.
Mehdi Gholam 4-Jul-12 5:23am    
If you are using WinAPI methods, they may require more than user access permissions.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900