Access is Denied Error- After Build Solution and When Start without Debugging

  • Thread starter Thread starter Drumshtick
  • Start date Start date
D

Drumshtick

Guest
Hi, I am relatively new to visual studio so I hope I am being straight forward and clear.

I am simply trying to run a simple "Hello World!" console app. Using Visual C# with .NET FRAMEWORK. The project files are being stored on a non-network drive. Here is my code.



using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TestHello
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}

The build is successful but when I select "Run Without Debugging" cmd.exe pops up and instead of it showing Hello World! it shows "Access is Denied" "Press any key to continue".

I have tried everything I can think of. My permissions are all set to read and write and I always "Run as Administrator". I checked my Anti virus programs and it is not having its access blocked, as far as I can tell.

If anyone could please help it would be very much appreciated. It's quite disheartening when you can't even getting a "Hello World!" To function properly.

Continue reading...
 
Back
Top