Solved

CompilationLock error on build

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How do ASP.NET and MVC work together? 4 47
Licensing Sharepoint 2016 for developers 11 47
Store results in vb.net 3 22
vb.net winforms sizing/resolution? 4 34
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…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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.

809 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