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
I had the same issue, To resolved this i had checked/done several things
What Didn't work
1) Read/write permissions were given to directory
2) Restarted visual studio
3) Tried deleting visual studio temp files
What worked at last
Just paste the command given by Fred Morrison into the "Package Manager Console":
Get-Process | Where-Object -Property Name -EQ 'VBCSCompiler' | Stop-Process -Force -Verbose
Note: Just an observation Restarting Visual studio might not work in this case but restarting system can because stoppin process "VBCSCompiler" was the solution so we can do it either way.