Unanswered Mutex could not be created.

  • Monday, June 05, 2006 8:19 PM
     
     

    I ported a VS2003 .Net 1.1 application to VS2005 .Net 2.0 and used the conversion wizard for most of the work.

    Now, when I start the VS2005 debugger, I get this:

    Unable to start debugging on the web server. The web server is not configured correctly. See help for common configuration errors. Running the web page outside of the debugger may provide further information.

    And when i do just that, this is what IE has to say:

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

    Stack Trace:


    [InvalidOperationException: Mutex could not be created.]
       System.Web.Compilation.CompilationMutex..ctor(String name, String comment) +3464657
       System.Web.Compilation.CompilationLock..cctor() +158

    [TypeInitializationException: The type initializer for 'System.Web.Compilation.CompilationLock' threw an exception.]
       System.Web.Compilation.CompilationLock.GetLock(Boolean& gotLock) +32
       System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +114

    [HttpException (0x80004005): The type initializer for 'System.Web.Compilation.CompilationLock' threw an exception.]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3426839
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88
       System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +149

    Some research on different newsgroup indicated that by deleting my web folder under C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files i could solve the problem but alas, it is not so.

    Any solution/pointers/recommendation is appreciated.

    Regards,

    Gaetan Simard