0

Program 'tempCodeRunnerFile.exe' failed to run: Access is deniedAt line:1 char:110 This error comes up in few programs some times. I can't find any solution. Please help me with one.

enter image description here

Gama11
  • 31,714
  • 9
  • 78
  • 100
Aashi
  • 19
  • 1
  • 2

4 Answers4

2

This could be because of your antivirus. it will assume the file created during compilation to be an virus and won't permit it to run.

  • Temporary turn off your antivirus.
  • Uninstall your antivirus
  • Or Try changing name of the file

This is what helped me hope it will help you as well

anu2arc
  • 21
  • 2
1

I had the same problem and finally found out that my powershell has problem! So change default terminal by selecting it in vscode terminal dropdown menu (ctrl+j) then restart vscode.

reza
  • 11
  • 4
0

I had mcAfee antivirus and it kept deleting the exe files and so it wont run. i would suggest you shut those antiviruses off. I think Real-time scanning is the real reason it happens.

0

It is due to the antivirus running in your pc as it deletes the .exe files considering as a virus. Turn off the real time scanning of your antivirus and try executing the program.

Dharman
  • 30,962
  • 25
  • 85
  • 135
Aswin B
  • 47
  • 7