<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Migrating from Visual Studio .NET 2003 to Visual Studio 2005 </title><link>http://forums.asp.net/1012.aspx</link><description>Discuss issues, strategies, tips, etc. for migrating from Visual Studio .NET 2003 to Visual Studio 2005</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Asp.Net Runtime Error: The type initializer for 'System.Web.Compilation.CompilationLock' threw an exception.</title><link>http://forums.asp.net/thread/2983184.aspx</link><pubDate>Wed, 04 Mar 2009 22:52:05 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2983184</guid><dc:creator>aneesh.aravind</dc:creator><author>aneesh.aravind</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2983184.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1012&amp;PostID=2983184</wfw:commentRss><description>&lt;p&gt;I had the same error message and here&amp;#39;s what I found out. If I have a project open in VS 2005, and am debugging, my ASP.NET Development Server (the little icon in the tray on the RHS) latches on to the files and creates a lock on the files.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s how to reproduce the scenario:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Open a web project in VS2K5.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Debug the web application (F5) so that the ASP.NET Development Server gets instantiated.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Stop debugging the web app&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Close the project in VS do not exit VS&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Open a new instance of VS2K5 under a different user&amp;#39;s credentials (Run As)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Open the same project in the new instance of VS2K5&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Try to build the Project. You should get the error.&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;To get around this error, look in your icon tray at the bottom right hand corner and find the icon for ASP.NET Developement Server and stop it. You should be able to compile the Project now without any error.&lt;/p&gt;
&lt;p&gt;HTH.&lt;/p&gt;</description></item><item><title>Re: Asp.Net Runtime Error: The type initializer for 'System.Web.Compilation.CompilationLock' threw an exception.</title><link>http://forums.asp.net/thread/2924898.aspx</link><pubDate>Sun, 08 Feb 2009 07:41:06 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2924898</guid><dc:creator>SyntaxC4</dc:creator><author>SyntaxC4</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2924898.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1012&amp;PostID=2924898</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;Take a look at this forum: &lt;a href="http://forums.aspfree.com/net-development-11/asp-net-debugging-trouble-22489.html"&gt;http://forums.aspfree.com/net-development-11/asp-net-debugging-trouble-22489.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Seems he found an issue with his web.config file after the file conversion.&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;</description></item><item><title>Re: Asp.Net Runtime Error: The type initializer for 'System.Web.Compilation.CompilationLock' threw an exception.</title><link>http://forums.asp.net/thread/1343687.aspx</link><pubDate>Mon, 17 Jul 2006 20:46:39 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1343687</guid><dc:creator>ChadLindstrom</dc:creator><author>ChadLindstrom</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1343687.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1012&amp;PostID=1343687</wfw:commentRss><description>This happened to us the same morning on reboot.&amp;nbsp; It seemed to coincide with a windows update.&lt;br /&gt;&lt;br /&gt;Not impressed.&lt;br /&gt;</description></item><item><title>Re: Asp.Net Runtime Error: The type initializer for 'System.Web.Compilation.CompilationLock' threw an exception.</title><link>http://forums.asp.net/thread/1343119.aspx</link><pubDate>Mon, 17 Jul 2006 12:28:48 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1343119</guid><dc:creator>gleizerowicz</dc:creator><author>gleizerowicz</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1343119.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1012&amp;PostID=1343119</wfw:commentRss><description>&lt;p&gt;Sorry Geoff - no resolution yet.&amp;nbsp; My workaround was to remove the web project from my solution, then recreate it as a file system web project instead of a local IIS project.&amp;nbsp; To debug, I browse to my local site and attach to the process.&lt;/p&gt;
&lt;p&gt;I have some steps that MS Developer Support suggested; they didn't work for me, but if you contact me offline I'll be happy to send them to you and you can try them yourself.&lt;/p&gt;
&lt;p&gt;Greg&lt;/p&gt;</description></item><item><title>Re: Asp.Net Runtime Error: The type initializer for 'System.Web.Compilation.CompilationLock' threw an exception.</title><link>http://forums.asp.net/thread/1342180.aspx</link><pubDate>Sat, 15 Jul 2006 14:35:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1342180</guid><dc:creator>dstgroup</dc:creator><author>dstgroup</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1342180.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1012&amp;PostID=1342180</wfw:commentRss><description>Any resolution on this yet? I have been stuggleing with this issue for a few hours and can't seem to resolve it. I too am using a domian account and IIS and VS are fighting each other during compliation. The worked fine for weeks until today. After a reboot this morning it started happening.&lt;br /&gt;</description></item><item><title>Re: Asp.Net Runtime Error: The type initializer for 'System.Web.Compilation.CompilationLock' threw an exception.</title><link>http://forums.asp.net/thread/1266867.aspx</link><pubDate>Mon, 24 Apr 2006 18:43:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1266867</guid><dc:creator>davidebb</dc:creator><author>davidebb</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1266867.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1012&amp;PostID=1266867</wfw:commentRss><description>&lt;p&gt;Yes, please send me email offline and I will include a few people who will help out with the investigation.&lt;/p&gt;
&lt;p&gt;thanks,&lt;br /&gt;David&lt;/p&gt;</description></item><item><title>Re: Asp.Net Runtime Error: The type initializer for 'System.Web.Compilation.CompilationLock' threw an exception.</title><link>http://forums.asp.net/thread/1266852.aspx</link><pubDate>Mon, 24 Apr 2006 18:29:08 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1266852</guid><dc:creator>gleizerowicz</dc:creator><author>gleizerowicz</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1266852.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1012&amp;PostID=1266852</wfw:commentRss><description>&lt;p&gt;I can reproduce it easily:&lt;/p&gt;
&lt;p&gt;1. Open VS&lt;/p&gt;
&lt;p&gt;2. Build one of my two websites in this solution&lt;/p&gt;
&lt;p&gt;3. Browse to the application in IE, get runtime compilation lock error&lt;/p&gt;
&lt;p&gt;Then, after closing the mutex handle held by devenv.exe:&lt;/p&gt;
&lt;p&gt;1. Refresh browser, use app&lt;/p&gt;
&lt;p&gt;2. Build website in VS, get mutex or compilation lock error&lt;/p&gt;
&lt;p&gt;From here I close the mutex handle held by aspnet_wp.exe&lt;/p&gt;
&lt;p&gt;This behavior is consistent.&amp;nbsp; Would you like to see my solution file offline?&amp;nbsp; I'd be happy to give you whatever info would be helpful.&lt;/p&gt;</description></item><item><title>Re: Asp.Net Runtime Error: The type initializer for 'System.Web.Compilation.CompilationLock' threw an exception.</title><link>http://forums.asp.net/thread/1266794.aspx</link><pubDate>Mon, 24 Apr 2006 17:45:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1266794</guid><dc:creator>davidebb</dc:creator><author>davidebb</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1266794.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1012&amp;PostID=1266794</wfw:commentRss><description>I would think this should be ok, but I can't explain why you were getting this.&amp;nbsp; It'll be interesting to see whether it keeps working now, or whether some sequence of action will cause it to get back into that bad state.</description></item><item><title>Re: Asp.Net Runtime Error: The type initializer for 'System.Web.Compilation.CompilationLock' threw an exception.</title><link>http://forums.asp.net/thread/1266434.aspx</link><pubDate>Mon, 24 Apr 2006 12:57:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1266434</guid><dc:creator>gleizerowicz</dc:creator><author>gleizerowicz</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1266434.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1012&amp;PostID=1266434</wfw:commentRss><description>Thanks for the procexp tip - I deleted a Mutant (just picked one of two that started with CL) and I could build again.&amp;nbsp; It was being held by aspnet_wp.exe.&amp;nbsp; I have my processModel running as a domain account and my IIS 5.1 on XPSP2 application running in Low Isolation mode.&amp;nbsp; I had to set it up this way to use integrated security to connect to my SQL Server database.&amp;nbsp; Could this configuration cause any problems?</description></item><item><title>Re: Asp.Net Runtime Error: The type initializer for 'System.Web.Compilation.CompilationLock' threw an exception.</title><link>http://forums.asp.net/thread/1253458.aspx</link><pubDate>Mon, 10 Apr 2006 19:17:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1253458</guid><dc:creator>davidebb</dc:creator><author>davidebb</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1253458.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1012&amp;PostID=1253458</wfw:commentRss><description>&lt;p&gt;To be sure, is this an error that you see in the error list in VisualStudio, or at runtime in the browser?&lt;/p&gt;
&lt;p&gt;This error could happen if a process is already holding on to&amp;nbsp;the Mutex object that ASP.NET tries to use for this application (it's used to protect compilations).&amp;nbsp; But I really can't explain how restarting all processes doesn't fix it.&amp;nbsp; Even rebooting doesn't help?&lt;/p&gt;
&lt;p&gt;I would use &lt;a href="http://www.sysinternals.com/Utilities/ProcessExplorer.html"&gt;procexp&lt;/a&gt; to investigate this, but this is a little adanced.&amp;nbsp; Look for a Mutex (aka Mutant) with a name that starts with "CL", and check what process might be holding on to it.&lt;/p&gt;</description></item><item><title>Re: Asp.Net Runtime Error: The type initializer for 'System.Web.Compilation.CompilationLock' threw an exception.</title><link>http://forums.asp.net/thread/1250652.aspx</link><pubDate>Fri, 07 Apr 2006 05:04:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1250652</guid><dc:creator>bala_excel</dc:creator><author>bala_excel</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1250652.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1012&amp;PostID=1250652</wfw:commentRss><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;Thanks for your reply, &lt;/p&gt;
&lt;p&gt;I have restarted both my VS and IIS but it didnt turn fruitful. and the application is running under IIS.&lt;/p&gt;
&lt;p&gt;I am getting this error while building the application. &lt;/p&gt;
&lt;p&gt;I have admin rights.&lt;/p&gt;
&lt;p&gt;I am not getting any build error when I create a new website in VS 2005&lt;/p&gt;
&lt;p&gt;kindly let me know what I am doing wrong !&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Bala&lt;/p&gt;</description></item><item><title>Re: Asp.Net Runtime Error: The type initializer for 'System.Web.Compilation.CompilationLock' threw an exception.</title><link>http://forums.asp.net/thread/1250185.aspx</link><pubDate>Thu, 06 Apr 2006 18:25:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1250185</guid><dc:creator>davidebb</dc:creator><author>davidebb</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1250185.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1012&amp;PostID=1250185</wfw:commentRss><description>&lt;p&gt;Hi Bala,&lt;/p&gt;
&lt;p&gt;Some questions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Are you&amp;nbsp;seeing under IIS, or the VS test web server?&lt;/li&gt;
&lt;li&gt;Does restarting VS and the Web Server solve it?&lt;/li&gt;
&lt;li&gt;Do you also this this for other 2.0 apps, or just for this one?&lt;/li&gt;
&lt;li&gt;Are you running as admin on your machine, or as a regular user?&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;thanks,&lt;br /&gt;David&lt;/p&gt;</description></item><item><title>Asp.Net Runtime Error: The type initializer for 'System.Web.Compilation.CompilationLock' threw an exception.</title><link>http://forums.asp.net/thread/1248454.aspx</link><pubDate>Wed, 05 Apr 2006 11:04:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1248454</guid><dc:creator>bala_excel</dc:creator><author>bala_excel</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1248454.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1012&amp;PostID=1248454</wfw:commentRss><description>&lt;p&gt;HI all,&lt;/p&gt;
&lt;p&gt;I migrated my webapplication from VS 2003 to&amp;nbsp;&amp;nbsp;VS 2005. and i am running on win xp Professional sp2. After migrating. i am getting the following error .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;"The type initializer for 'System.Web.Compilation.CompilationLock' threw an exception." the error is shown in the following line&lt;/p&gt;&lt;font size=2&gt;
&lt;p&gt;"&amp;lt;%&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;@&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#800000 size=2&gt;Page&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;Language&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="C#"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;AutoEventWireup&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="true"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;CodeFile&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="Test.aspx.cs"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;Inherits&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="Test"&lt;/font&gt;&lt;font size=2&gt; %&amp;gt;"&lt;/font&gt;
&lt;p&gt;&lt;font size=2&gt;i looked into the net but couldnt fix this.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=2&gt;any help would be highly appreciated &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;Bala&lt;/p&gt;</description></item></channel></rss>