新装的vs2005,打开一些以前的2003做的站点,在浏览器中浏览报错:
Server Error in '/threelayer' 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) +3464689
   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) +3426871
   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 什么意思?e问我太菜,看不懂,求解决方法

解决方案 »

  1.   

    下面这些该看得懂吧?
    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 nowI hope it will work for you as he does for me.
      

  2.   

    使用2005打开2003的项目会提示转换的,您转换了么^_^Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42 
    从这行看,您的IIS中ASP.NET版本应该是正确的,但是如果操作系统是2003的话,还要把应用程序池ASP.NET2.0.