Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio hangs on build

When I try to build my projects in Visual Studio 2008, web sites won't build anymore, they hang on this stage:

------ Build started: Project: C:\...\Web\, Configuration: Debug Any CPU ------
Validating Web Site
Building directory '/Web/Admin/Secure/'.
Building directory '/Web/Admin/'.
Building directory '/Web/Students/'.
Building directory '/Web/'.

Validation Complete

And I have to cancel it as it doesn't complete even after leaving it for an hour. Does anyone have any ideas on what's going on? Class libraries build fine.

like image 651
weiran Avatar asked Dec 16 '08 14:12

weiran


People also ask

How do you fix there were build errors Visual Studio?

Tools > Options > Projects and Solutions > Build and RunThe selection in the second dropdown “On Run, when build or deployment errors occur”, even if the code has the error during the run, project runs with the last successful build.


2 Answers

Try clearing out all the temporary files in

C:\WINDOWS\Microsoft.NET\Framework\<Framework Version>\Temporary ASP.NET Files

This has solved similar issues for me in the past.

like image 153
NikolaiDante Avatar answered Sep 25 '22 21:09

NikolaiDante


This can also often happen in the event that you have a 3rd party control that is not licensed\registered properly. It may be attempting to display a warning\registration UI that is not making it to focus. We have had this issue on our build servers alot.

like image 31
Brian Rudolph Avatar answered Sep 25 '22 21:09

Brian Rudolph