I am working on Web API Project in ASP.NET Core using .NET 6.0. I have also added some features of MVC to view the data. Everything was working fine. Suddenly, while modifying the project, i have tried to build the application, i have received error
Unable to copy file "D:\Soliton\Applications\MachineManagement\ServerAPI\MMAPIApp\MMAPIApp\obj\Debug\net6.0\apphost.exe" to "bin\Debug\net6.0\MMAPIApp.exe". Access to the path 'bin\Debug\net6.0\MMAPIApp.exe' is denied.
I have tried to give rights to everyone to the source and destination folders.