Search code examples
c#buildpublish

Building Projects Failure


I'm having this problem last Friday when I'm trying to build my project to deploy it. Whenever I build my project (Ctr+Shift+B or F6) I always encounter this kind of error.

enter image description here

When I'm trying to locate the file from my PC it looks like it reside in temporary folder and when building my project, this files automatically created.

enter image description here

Anyone encountered this kind of problem?


Solution

  • You have an unclosed #region statement (or perhaps some other syntax error) in the .aspx or .cshtml file that is generating that code.