none
ASP.NET2.0网站发布以后出现Compilation Error RRS feed

  • 问题

  • 我写的一个ASP.NET2.0网站解决方案,其中包括网站"/DG/",它引用类库"SQLHelper"。最后生成解决方案,然后发布网站到我的服务器。
    结果每次都出现很奇怪的问题。每次头几个页面请求总会很慢,等很久之后会报错,但是多访问几次就没问题了,中间也不会出现任何报错信息了。
    报错信息如下:
    Server Error in '/Dg' Application.
    --------------------------------------------------------------------------------
    Compilation Error
    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: CS0006: Metadata file 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\dg\484537e3\231605d8\App_Web_jwymasterpage.master.7371103c.qchiwwch.dll' could not be found

    Source Error:

    [No relevant source lines]

    Source File:    Line: 0

    Show Detailed Compiler Output:

    c:\windows\system32\inetsrv> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe" /t:library /utf8output /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\dg\484537e3\231605d8\App_Web_jwymasterpage.master.7371103c.qchiwwch.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\dg\484537e3\231605d8\assembly\dl3\0bb53d72\2ea750f4_019bc901\App_Web_lff1aned.DLL" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\dg\484537e3\231605d8\assembly\dl3\a88cab9c\38254feb_019bc901\SQLHelper.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\dg\484537e3\231605d8\assembly\dl3\0a3cbaec\d67ba6f4_019bc901\App_Web_krw5stt9.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\dg\484537e3\231605d8\App_Web_jwymain.aspx.6c257977.uiy_szgy.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699  "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\dg\484537e3\231605d8\App_Web_jwymain.aspx.6c257977.uiy_szgy.0.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\dg\484537e3\231605d8\App_Web_jwymain.aspx.6c257977.uiy_szgy.1.cs"


    Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42
    for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
    Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.

    error CS0006: Metadata file 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\dg\484537e3\231605d8\App_Web_jwymasterpage.master.7371103c.qchiwwch.dll' could not be found

    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42


    请大家帮忙看看,分析一下。我分析呢是不是整个网站内容较多,第一次请求的时候ASP.NET引擎进行编译较慢,那么在编译的同时任何请求都会显示这个错误。
    2009年3月3日 7:48

答案

全部回复