views:

2376

answers:

7

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.

+3  A: 

I have had a similar problem problem before.

I fixed it by making a new solution file and adding the projects again - it might be worth giving that a go.

qui
And tried this, didn't fix it either!
weiran
+3  A: 

Try clearing out all the temporary files in C:\WINDOWS\Microsoft.NET\Framework\<Framwork Version>\Temporary ASP.NET Files that has solved similar issues for me in the past.

DeletedAccount
Tried this too, no luck :(.
weiran
+1  A: 

I have also run into this problem in the past. I was able to correct it by going to Build -> Clean Solution.

joseph.ferris
I've already tried this, it doesn't work :(.
weiran
+3  A: 

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.

Brian Rudolph
It turns out it was an auto build number increment plugin I had that must've been hanging. I've disabled it now and my builds are fine, thanks!
weiran
Happy to help. Build issues are annoying and quite deflating.
Brian Rudolph
Follow up question: how did you know it was the plugin? what lead you to that conclusion? Did you just selectively disable each plugin?
MADCookie
A: 

switch to netbeans pals! or eclipse!

I cannot believe visual studio is such a piece of crap! I've been working with it for a month now and I just can't believe that there is so much people working with this crap. Get rid of it, if you can! Don't overestimate the cost of letting it go. I know what I am talking about!

Your friend
I guess if you are the type of user who uses 'netbeans pals' or 'eclipse', then that is precisely why one shouldn't.
adolf garlic
A: 

I just had the same problem. Turns out it was with a User Control I created to be transparent. While I was figuring it out, I accidentally had it invalidating the form from the control's OnPaint method, resulting in an infinite loop of painting. VS would never even start building if that control was present in any of the open designers, though it would lock everything out as if it were building. I couldn't update the designers with a fixed control because the control wouldn't build.

My Answer: Take out the painting loop, close the designers, rebuild.

Oh, designer...

Nathan
A: 

If your .suo file has gotten too big, you may try to delete/move/rename it. VS will create a new version on your next build.

Harry