简体   繁体   中英

How can I fix 'Access denied' error in visual studio 2012 and VS community 2015?

I wish to learn the C++ programming language. I have Visual Studio 2012 and VS community 2015 . I started programming the standard 'hello world' program in VS 2012.

#include <iostream> 

using namespace std;

int main() 
{
    cout << "Hello world!" << endl;
    cout << "I'm learning C++!" << endl;
    cout << "This is fun :D" << endl;

    cin.get();
}

When I proceeded to debugging I received an error:

"Unable to start program (*program name & location*) Access is denied" . I downloaded VS 2015 version in another attempt and received the same error.

I have been searching for solutions for hours and a lot of posts mention having the incorrect permissions set - if this is the problem, how do I fix it?

Please can anyone help?

Your answers are much appreciated.

  • Turn on windows service :- Application experience

  • Computer (right-click) -> manage -> Service & Application -> service -> Enable Application experience

Hope This Might Solve Your Problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM