Solved

CompilationLock error on build

Posted on 2012-03-21
3
587 Views
Last Modified: 2012-04-16
Hi,

I use Visual Web developer 2010. A project was running fine until yday. I didnt do any configuration changes since a long time. Today it is giving me many build errors; the first one is copied below:
The type initializer for 'System.Web.Compilation.CompilationLock' threw an exception.      

I had VS 2008 open and running when I opened 2010. That is when the errors started coming up. I have restarted IIS, Visual Web Developer 2010, my computer; but the errors are still showing up. I am running VWD 2010 as admin.

When I browse to the website (without compiling), it looks fine. The most recents changes are also reflected in there. But I can't build the project

Any workarounds?

      
Thanks,
0
Comment
Question by:IT-CICA
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 37752575
Is the web site running from IIS?  What is the target framework for the web site on IIS?
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 37765265
0
 

Author Closing Comment

by:IT-CICA
ID: 37852356
Thank you
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
I'd like to talk about something that is near and dear to my heart: build systems. Without them, building software is all about compiling locally, with software versions everywhere. It can be a mess. Today we are going to discuss building a small di…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question