Last week one of junior friend was getting started with ASP.NET MVC application. He created a sample application using the ASP.NET MVC templates available in Visual Studio 2013. But when he tried to run the application using Start Debugging (F5) , the application started running using the Visual Studio in built server but failed to show the default route page with the below error:
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.
Solution to fix the Mutex could not be created error
He didn’t start the Visual Studio as an Administrator, so it was failing because of accessing some registries because of the restricted permissions.
He started the Visual Studio as an Administrator and everything started working as expected.
Some times it makes to run Visual Studio always as an ADMIN, in that case follow Running an application as ADMIN always.