Visual Studio hangs on the assembly

When I try to create my projects in Visual Studio 2008, the websites will no longer build, they hang at 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, since it does not end even after it leaves within an hour. Does anyone have any idea what is going on? Class libraries build perfectly.

+7
visual-studio
source share
11 answers

This also often happens if you have a third-party control that is not licensed \ registered properly. Perhaps you are trying to display a warning / registration user interface that is not focusing. We had this problem on our build servers.

+6
source share

Try to clear all temporary files in

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

In the past, I solved similar problems for me.

+8
source share

I also encountered this problem in the past. I was able to fix this by choosing Build -> Clean Solution.

+4
source share

I had a similar problem.

I fixed this by creating a new solution file and adding projects again - maybe you should go for it.

+3
source share

renaming or deleting the SUO file seems to be a fix for this problem. My SUO file was 8 MB, as soon as I renamed and opened the project, it worked without any glitches.

+3
source share

I had the same problem. Turns out it was with a User Control created by the user to be transparent. While I was figuring this out, I accidentally invalidated the form from the OnPaint control method, which led to an endless loop of painting. VS will never even begin to build if this control was present in any of the open designers, although it would block everything as if it were building. I could not update the constructors with a fixed control because the control will not be created.

My answer: remove the loop of painting, close the designers, rebuild.

Oh designer ...

+1
source share

If your .suo file has become too large, you can try to delete / move / rename it. VS will create a new version of your next build.

0
source share

If you are a SharePoint developer and have installed SPDisposeCheck, make sure Run After Build is disabled.

enter image description here

0
source share

Reboot the system. It helps me.

0
source share

I know this is an old thread, but I had this problem in Visual Studio Community 2013 (update 5). Thought I'd share what worked for me.

I unchecked the Enable code analysis box on the project properties pages, clicked OK, click Save All. After that, the assembly is completed at normal speed.

Code analysis seemed to hang during the Building Directory phase.

Hope this helps someone!

0
source share

I also executed this command from the cmd (Run as administrator) prompt:

 regsvr32 "C:\Program Files (x86)\Internet Explorer\ieproxy.dll" 
-2
source share

All Articles