Page view counter

Mutex Could not be Created.

Last post 06-19-2009 7:29 AM by RachanaRohit. 43 replies.

Sort Posts:

  • Confused [*-)] Mutex Could not be Created.

    11-11-2005, 3:48 AM
    • Loading...
    • dvm_2k1
    • Joined on 07-14-2005, 4:23 AM
    • India
    • Posts 13
    • Points 65
    Hi ,

    We are getting a following error when we are browsing the web site which was build and published on to the local machine (which is having Windows XP Sp2 and Visual Studio 2005 RTM.)

    Server Error in '/Ea' Application. -------------------------------------------------------------------------------- Mutex could not be created.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.InvalidOperationException: Mutex could not be created.
    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) +3464673 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) +3426855 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88 System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +149 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42


    Please kindly provide us a solution / workaround in order to resolve this issue.

    Thanks in advance.
    MDeevi.
    Thanks & Regards,
    VDeevi
  • Re: Mutex Could not be Created.

    11-22-2005, 4:17 PM
    • Loading...
    • jeff@zina.com
    • Joined on 09-26-2003, 10:43 AM
    • Naples, FL, USA
    • Posts 9,708
    • Points 69,690
    • Moderator
      TrustedFriends-MVPs
    Having the same issue here.  On Server 2003, fresh install with all critical updates, SP1, .NET 2.0.  Installed SQL Express 2005, VWD 2005, then ran through tutorial for creating a web site on a local IIS server.  Received an error about NT AUTHORITY/NETWORK SERVICE not having permissions to the .NET 2.0 temporary folder, set the NETWORK SERVICE account to full control for that folder.  Next time the app was run, generated the Mutex error above.

    Jeff
    Blatant Self Promotion: ASP.NET 3.5 CMS Development
  • Re: Mutex Could not be Created.

    11-29-2005, 6:35 AM
    Answer
    • Loading...
    • JoaoMorais
    • Joined on 11-29-2005, 11:26 AM
    • London, UK - Paris, France
    • Posts 1
    • Points 15
    Hi All

    I have got the same issue. It seems like Visual studio 2005 and the web application pool running ASP.NET 2.0 are having a conflict over the temporary folder.
    The workaround I have got for now is:
    - If you have visual studio 2005 is open, close it
    - Go tot the ASP.NET temporary folder for v2.0 of the framework
        <Windows dir>\Microsoft.Net\Framework\v2.0<extra numbers>\Temporary ASpNET pages
    - Remove the folder for your application (or all of them)
    - Reset IIS (on a command line window, >iisreset) [not always needed, but I had to use it sometimes]
    - First Browse your page from IE (http://localhost/your app)
    - Then reopen Visual studio

    And it should work now

    I hope it will work for you as he does for me.

    Joao Morais (joao.morais@free.fr)

  • Re: Mutex Could not be Created.

    11-30-2005, 5:41 PM
    • Loading...
    • JimHarris
    • Joined on 07-11-2003, 3:30 PM
    • Memphis, TN
    • Posts 7
    • Points 35
    This fixed my problem - and I would have never guessed the solution.

    Thanks

    Jim Harris
  • Betreft: Re: Mutex Could not be Created.

    12-11-2005, 5:37 PM
    • Loading...
    • Arthuro
    • Joined on 12-11-2005, 10:32 PM
    • The Netherlands
    • Posts 1
    • Points 5

    Thanks, its realy works.

     

    Arthur

  • Re: Betreft: Re: Mutex Could not be Created.

    12-23-2005, 11:02 PM
    • Loading...
    • CynthiaD
    • Joined on 07-30-2002, 11:57 PM
    • Southern California
    • Posts 230
    • Points 998

    I had the same problem when I transferred my 2.0 project from my work computer to my home computer.  I was able to get rid of the "Mutex" error using the solution suggested here.

    However, when I try to run it from Visual Studio, I get a compilation error:  "the type initializer for 'System.Web.Compilation.CompilationLock' threw an exception."

    If I tell it to run in spite of the error, it runs and there does not seem to be any problem, but it's a little disturbing.  Why would I be getting this on my home computer and not on my work computer?  Both computers have the same version of Visual Studio.

    Has anyone else run into this error?

    Cynthia
  • Re: Mutex Could not be Created.

    01-30-2006, 1:13 AM
    • Loading...
    • Mikell
    • Joined on 01-30-2006, 6:10 AM
    • Posts 1
    • Points 5

    Many Thanks ..  Mikell

  • Re: Mutex Could not be Created.

    02-03-2006, 12:02 PM
    • Loading...
    • Bob_T
    • Joined on 02-03-2006, 4:54 PM
    • Posts 1
    • Points 5

    Many Many thanks for the answer to this question.

    I have been surfing for about an hour before I found this out.

    Now does anyone know if my 1.1 projects will still work?

    I have not been brave enough to try yet.

    Now that I have this site converted its off to do another.

    bob

  • Re: Betreft: Re: Mutex Could not be Created.

    02-08-2006, 9:03 AM
    • Loading...
    • polo
    • Joined on 02-08-2006, 2:00 PM
    • Posts 3
    • Points 15

    Well, I have the same problem as CynthiaD... Even if I create a new project I have this error: "The type initializer for 'System.Web.Compilation.CompilationLock' threw an exception."

    and realy do not have an idea how to solve that...

    CynthiaD - are you logged in to windows with administrator permissions? I am not.

  • Re: Betreft: Re: Mutex Could not be Created.

    02-08-2006, 9:47 PM
    • Loading...
    • CynthiaD
    • Joined on 07-30-2002, 11:57 PM
    • Southern California
    • Posts 230
    • Points 998

    No, I am not administrator either, but now my project works. To tell the truth, I can't remember what I did exactly!

    However, as I recall it worked OK if I opened it in file mode and used the development server instead of IIS.  It was when I ran it in IIS that it had the problem.

    However, now I CAN run it in IIS and it also works there .. so I am afraid I am not much use because I can't remember what I did.  But I would try opening the project in file mode and seeing what happens.

    Cynthia
  • Re: Betreft: Re: Mutex Could not be Created.

    02-09-2006, 4:59 AM
    • Loading...
    • polo
    • Joined on 02-08-2006, 2:00 PM
    • Posts 3
    • Points 15
    hm... what do you mean by the 'file mode'?
  • Re: Betreft: Re: Mutex Could not be Created.

    02-09-2006, 3:29 PM
    • Loading...
    • CynthiaD
    • Joined on 07-30-2002, 11:57 PM
    • Southern California
    • Posts 230
    • Points 998

    Well, if you pick "Open Web Site" (not "Open Project") from the File menu, it comes up with a dialog box with five icons down the left side:  File System, Local IIS, FTP Site, Remote Site, and Source Control.  If you select "File System" you can browse to your site and open it, and then it does not run using IIS, it runs using the special Developer Web Server that comes with ASP.NET 2.0.

    If you try that, you MAY not get the Mutex error ... hard to remember, but I think that's how I got around it.

    Cynthia
  • Re: Betreft: Re: Mutex Could not be Created.

    02-09-2006, 5:18 PM
    • Loading...
    • GaryDR
    • Joined on 02-09-2006, 10:15 PM
    • Posts 1
    • Points 5
    I have the same problem. The solution above allows me to browse to the site through IE, but I now get the error in Visual Studio. I tried opening the site from the file system instead of IIS and this does not fix the problem.

  • Re: Betreft: Re: Mutex Could not be Created.

    02-13-2006, 4:46 AM
    • Loading...
    • polo
    • Joined on 02-08-2006, 2:00 PM
    • Posts 3
    • Points 15

    with the file system it works, but when i came back to IIS it didn't.

    I logged in as an Administrator, and everything works fine! but the problem is that i cannot be logged in as an adm normally... but i guess this is a problem of some settings in permissions... but which?... that is a question :)

    if someone knows... it would be great if you share the news :)

  • Re: Mutex Could not be Created.

    02-16-2006, 3:35 PM
    • Loading...
    • emilcorp
    • Joined on 12-25-2005, 1:13 AM
    • Posts 1
    • Points 5

    Thanks a Million it worked for me too !!,

    But Guys we need to know exactly what happened any idea ?

     

Page 1 of 3 (44 items) 1 2 3 Next >