Permisions in windows vista
-
Hi, I have build a desktop application and a windows service in c#.net 2.0. I have made a button on main form of application which start or stop windows service. Now, it is working properly in windows XP. But when i install it on windows vista i won't be able to stop or start service. It didn't work. The other thing is that visual studio 2005 doesn't run in debug mode in windows vista. Can anybody help me. Thanx in advance. regards, Arslan Ilyas
-
Hi, I have build a desktop application and a windows service in c#.net 2.0. I have made a button on main form of application which start or stop windows service. Now, it is working properly in windows XP. But when i install it on windows vista i won't be able to stop or start service. It didn't work. The other thing is that visual studio 2005 doesn't run in debug mode in windows vista. Can anybody help me. Thanx in advance. regards, Arslan Ilyas
Hey Arslan, This is due to the way Vista handles elevation of privilages on accounts (even ones that do have permissions to do things such as start/stop services). You can verify this by running your application as an Administrator (ie. right click and "Run as administrator" with your admin account). You will also be able to run a debug session after start Visual Studio in the same manor (there are things to be aware of when doing this though). Please reference this site for more information on these things you're experiencing http://msdn.microsoft.com/en-us/vs2005/aa964140.aspx[^] Cheers, -t
-
Hi, I have build a desktop application and a windows service in c#.net 2.0. I have made a button on main form of application which start or stop windows service. Now, it is working properly in windows XP. But when i install it on windows vista i won't be able to stop or start service. It didn't work. The other thing is that visual studio 2005 doesn't run in debug mode in windows vista. Can anybody help me. Thanx in advance. regards, Arslan Ilyas
Hi Arslan, Please make sure that you are meeting the following requirements of Windows Vista OS. 1) Run Visual Studio with elevated administrator permissions. 2) Be a member of the "Administrators" group on the local machine. 3) Right-click the Visual Studio icon and select the "Run as administrator" option from the context menu. PS: You can create a shortcut to Visual Studio and select the option to always run with elevated administrator permissions. Using this shortcut would be the equivalent of the right-click method described above. Hope this helps :).
Regards, John Adams ComponentOne LLC