Debug a program that needs administrator rights under Windows 7

后端 未结 6 650
旧时难觅i
旧时难觅i 2020-12-29 07:19

I\'m running Visual Studio 2008 on Windows 7 64-bit. I\'m logged in as administrator, and I\'m running it as administrator, but the program I\'m working on fa

6条回答
  •  一生所求
    2020-12-29 07:51

    I had a case where I put in the

        
    

    settings (described by another answer at this post)........and did not work.

    I found another tip (seen below)...and unchecking that option allowed my code to work.

    Try going into the project properties, and under the "debug" tab, uncheck "enable the Visual Studio hosting process" and see if that fixes your problem.

    (from https://social.msdn.microsoft.com/Forums/vstudio/en-US/b5c4da93-5d64-442e-af28-df6d10765538/debug-as-administrator?forum=vbgeneral)

    So I needed the app.manifest settings AND the "uncheck".

提交回复
热议问题