Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Permisions in windows vista

Permisions in windows vista

Scheduled Pinned Locked Moved C#
csharpvisual-studiodebugginghelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    arslanjatt
    wrote on last edited by
    #1

    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

    T J 2 Replies Last reply
    0
    • A arslanjatt

      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

      T Offline
      T Offline
      Travis D Mathison
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • A arslanjatt

        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

        J Offline
        J Offline
        John_Adams
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups