basd dsasda
basd dsasda

Reputation: 63

Visual Studio unable to rebuild the executable, as its protected from writing

I am experiencing a very annoying problem lately. After building my source code for few times and getting runtime error. My computer seems to protect the executable from writing, as the visual studio report.

Severity Code   Description 
Error   LNK1168 cannot open C:\Users\Gedalia\Documents\Visual Studio 2015\Projects\ConsoleApplication1\Debug\ConsoleApplication1.exe for writing    

EDIT: The problem was solved by closing the program which was running secretly in the background...

Upvotes: 0

Views: 31

Answers (1)

Glapa
Glapa

Reputation: 800

Most likely this file is executed. Probably process hung. Press Ctrl+Alt+Esc go to processes list, find it and force close before building.

Upvotes: 1

Related Questions