asp.net程序编译成功后运行提示BC31007错误
环境:win7 64位系统 +.net4.0
生成程序没有错误,但是运行时提示编译错误“ BC31007: 无法打开模块文件“C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\rltest\cdb681a4\d63f2ca1\App_global.asax.jbp8xgqw.0.vb”: 系统错误 &Hc0000005& (Visual Basic 内部编译器错误)”。无法解决,请教大家!
具体错误信息如下:
编译错误
说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。
编译器错误消息: BC31007: 无法打开模块文件“C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\rltest\cdb681a4\d63f2ca1\App_global.asax.jbp8xgqw.0.vb”: 系统错误 &Hc0000005& (Visual Basic 内部编译器错误)
源错误:
[没有相关的源行]
源文件: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\rltest\cdb681a4\d63f2ca1\App_global.asax.jbp8xgqw.0.vb : 行: 0
显示详细的编译器输出:
?c:\windows\system32\inetsrv> "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\vbc.exe" /t:library /utf8output /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\rltest\cdb681a4\d63f2ca1\assembly\dl3\ad5bbe6b\00d8db59_0992c801\Excel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\rltest\cdb681a4\d63f2ca1\assembly\dl3\201c6f3b\004e1837_ba53c601\log4net.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\rltest\cdb681a4\d63f2ca1\assembly\dl3\1c08222f\82929eac_20d1cd01\CKEditor.NET.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\rltest\cdb681a4\d63f2ca1\assembly\dl3\2730add5\f1d980c2_f1c8ce01\RLExam.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\rltest\cdb681a4\d63f2ca1\assembly\dl3\0520956e\00767531_11f1ca01\Interop.DLCONTROLLib.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\rltest\cdb681a4\d63f2ca1\assembly\dl3\d2806901\325849c0_f1c8ce01\RLExam.Model.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\rltest\cdb681a4\d63f2ca1\assembly\dl3\2302b7f1\00a3a632_11f1ca01\Microsoft.Web.UI.WebControls.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\rlexam\cdb681a4\d63f2ca1\assembly\dl3\81aace59\8a489cac_20d1cd01\FredCK.FCKeditorV2.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\rltest\cdb681a4\d63f2ca1\assembly\dl3\278180df\7395b7b4_16f2cd01\Newtonsoft.Json.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\rltest\cdb681a4\d63f2ca1\assembly\dl3\28c0b3ee\009bbc59_6145ce01\FineUI.Design.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Web.PageInspector.Loader\v4.0_1.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Web.PageInspector.Loader.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\rltest\cdb681a4\d63f2ca1\assembly\dl3\74aa047c\0035f6a1_9d6ace01\FineUI.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Web.PageInspector.Runtime\v4.0_1.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Web.PageInspector.Runtime.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\rltest\cdb681a4\d63f2ca1\assembly\dl3\a496903f\00d8db59_0992c801\COM.Excel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\rltest\cdb681a4\d63f2ca1\assembly\dl3\1ebc0efe\008a8295_236bcd01\Microsoft.QualityTools.Testing.Fakes.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\rltest\cdb681a4\d63f2ca1\assembly\dl3\61574f72\4e1f62c1_f1c8ce01\RLExam.Business.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\Windows\assembly\GAC_MSIL\Microsoft.Office.Interop.Excel\15.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Excel.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\rltest\cdb681a4\d63f2ca1\assembly\dl3\d9c36f93\e0ab15c1_f1c8ce01\RLExam.Common.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\rltest\cdb681a4\d63f2ca1\assembly\dl3\c3591c08\0092fd7e_2349c901\Elmah.dll" /out:"C:rltest\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\rltest\cdb681a4\d63f2ca1\App_global.asax.jbp8xgqw.dll" /D:DEBUG=1 /debug+ /nowarn:41008,40000,40008 /define:_MYTYPE="Web" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Generic,System.Collections.Specialized,System.ComponentModel.DataAnnotations,System.Configuration,System.Linq,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.DynamicData,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls,System.Xml.Linq /warnaserror- /optionInfer+ "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\rltest\cdb681a4\d63f2ca1\App_global.asax.jbp8xgqw.0.vb" "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\rltest\cdb681a4\d63f2ca1\App_global.asax.jbp8xgqw.1.vb"
Microsoft(R) Visual Basic 编译器版本 11.0.50709.17929
版权所有(C) Microsoft Corporation。保留所有权利。
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\rltest\cdb681a4\d63f2ca1\App_global.asax.jbp8xgqw.0.vb : error BC31007: 无法打开模块文件“C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\rltest\cdb681a4\d63f2ca1\App_global.asax.jbp8xgqw.0.vb”: 系统错误 &Hc0000005& (Visual Basic 内部编译器错误)
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\rltest\cdb681a4\d63f2ca1\App_global.asax.jbp8xgqw.1.vb : error BC31007: 无法打开模块文件“C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\rltest\cdb681a4\d63f2ca1\App_global.asax.jbp8xgqw.1.vb”: 系统错误 &Hc0000005& (Visual Basic 内部编译器错误)
版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.18055
[解决办法]
是不是没有权限。。。
参考:
IIS Web服务扩展中添加ASP.NET4.0
http://www.ejutuo.com/bbs/thread-1350-1-1.html
Compiler error message BC31007 and BC30138 when aspx query is executed
http://geetharaniakinapally.blogspot.com.au/2010/11/compiler-error-message-bc31007-and.html