Solved

CompilationLock error on build

Posted on 2012-03-21
3
547 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
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

856 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