简体   繁体   English

如何解决Visual Studio 2012和VS Community 2015中的“拒绝访问”错误?

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

I wish to learn the C++ programming language. 我希望学习C++编程语言。 I have Visual Studio 2012 and VS community 2015 . 我有Visual Studio 2012VS community 2015 I started programming the standard 'hello world' program in VS 2012. 我从VS 2012开始编写标准的“ hello world”程序。

#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" . "Unable to start program (*program name & location*) Access is denied" I downloaded VS 2015 version in another attempt and received the same error. 我再次尝试下载VS 2015版本,并收到相同的错误。

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 打开Windows服务:-应用经验

  • Computer (right-click) -> manage -> Service & Application -> service -> Enable Application experience 计算机(右键单击)->管理->服务和应用程序->服务->启用应用程序体验

Hope This Might Solve Your Problem. 希望这可以解决您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Visual Studio Community 2015中的Windows上编译PortAudio? - How do I compile PortAudio on Windows in Visual Studio Community 2015? 链接错误1561 Visual Studio社区2015 - Link error 1561 visual studio community 2015 如何解决 Visual Studio 2015 中的此编译错误? - How can I resolve this compile error in Visual Studio 2015? GLFW和Visual Studio Community 2015 - GLFW and Visual Studio Community 2015 对于Visual Studio Community 2015,我可以使用C ++的代码覆盖功能吗? - For Visual Studio Community 2015 can I use code coverage functionality for C++? 在Visual Studio 2015社区C ++中,如何解决警告C4838:从&#39;unsigned int&#39;到&#39;int&#39;的转换需要缩小的转换 - in visual studio 2015 community c++, how do I fix warning C4838: conversion from 'unsigned int' to 'int' requires a narrowing conversion Visual Studio 2015社区ZeroMQ静态库链接错误 - Visual Studio 2015 Community ZeroMQ static library linking error 使用Visual Studio 2015社区版在C ++中#include excel错误 - #include excel error in C++ with Visual Studio 2015, Community edition Visual Studio 2015 社区 - 未找到函数定义但可以编译 - Visual Studio 2015 community - Function definition not found but can compile 如何在 Visual Studio Community 2015 上打开输入文件、C++? - How to open input file, C++ on visual studio community 2015?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM