I am not able to run("dotnet run") Alloy demo project on my local computer after fresh install through templates.I am getting an error:C:\Program Files\dotnet\sdk\6.0.300\Microsoft.Common.CurrentVersion.targets(5097,5): error MSB3021: Unable to copy file "C:\EPiServer\AlloyWeb\AlloyWeb\obj\Debug\net6.0\apphost.exe" to "bin\Debug\net6.0\AlloyWeb.exe". Access to the path 'C:\EPiServer\AlloyWeb\AlloyWeb\obj\Debug\net6.0\apphost.exe' is denied. [C:\EPiServer\AlloyWeb\AlloyWeb\AlloyWeb.csproj]
Also when running it through Visual Studio 2022, I am getting "Access Denied"-message
It works fine on my home PC, but I am not able to override our domain policies for my work computer.
Worth mentioning is that when installing a fresh Microsoft Web Application (.NET 6) it works fine.
What am I missing?
Sounds like the file is locked. Usually get that when web server is still running. Have you tried killing the dotnet process before re-running?
File is not locked, it is blocked by Microsoft Virus and Threat Protection.
There is a massive performance boost by not having AV monitoring on database files and local repositories folders if OK with policy.
Can you add C:\EPiServer\ to the exclusion list or use some folder that already might be in that list?