If you are facing problem to build your visual studio Application even if there was no syntax error then don't worry you just need to delete some temporary files.
Delete cache file of your project if problem in building.
%LocalAppData%\Microsoft\WebsiteCache
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
:)
Delete cache file of your project if problem in building.
%LocalAppData%\Microsoft\WebsiteCache
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
:)