I am using Visual Studio 2005. After taking code from version control first, the c#.net application runs correctly. But, after doing some modifications, when I build I am
If you copy any files across to a solution, make sure the files are not in Read Only mode. Right click on file and uncheck the attribute option solved my problem.
Just right click on your MVC project and click on the clean option. I had a similar problem and cleaning the project before rebuilding resolved it for me.
First go to location of the file. Then right click on the folder of the file -> Properties -> Unchecked Read Only Option and apply to files and its sub folders. It resolved my issue. Happy Coding!
I had the same error but I am using Perforce version control. Here's how I fixed it.
Changing the output path worked for me in Visual Studio 2015. This should help - Changing the Build Output directory
I resolved this issue myself. The problem was I had the solution opened in another place. After closing it it works