加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

.net – 编译器失败,错误代码为-1073741502(在Windows Server 20

发布时间:2020-12-14 01:52:43 所属栏目:Windows 来源:网络整理
导读:我有一台虚拟机(在我的笔记本电脑上运行VMWare Workstation 8.0.2)运行我用于SharePoint开发的 Windows Server 2008 R2 Standard和SharePoint Server 2010 SP1(Visual Studio 2010安装在虚拟机上).有时我收到以下错误消息: Server Error in '/' Application
我有一台虚拟机(在我的笔记本电脑上运行VMWare Workstation 8.0.2)运行我用于SharePoint开发的 Windows Server 2008 R2 Standard和SharePoint Server 2010 SP1(Visual Studio 2010安装在虚拟机上).有时我收到以下错误消息:

Server Error in '/' 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: The compiler failed with error code -1073741502.

Show Detailed Compiler Output:

c:windowssystem32inetsrv> 
"C:WindowsMicrosoft.NETFramework64v2.0.50727csc.exe"     /t:library /utf8output /R:
"C:WindowsassemblyGAC_MSILSystem.Drawing2.0.0.0__b03f5f7f11d50a3aSystem.Drawing.dll" /R:
"C:WindowsassemblyGAC_MSILSystem.Xml2.0.0.0__b77a5c561934e089System.Xml.dll" /R:
"C:WindowsassemblyGAC_MSILAscomADManager1.0.0.0__e27e5c95e5e50246AscomADManager.dll" /R:
"C:WindowsassemblyGAC_MSILSystem.Configuration2.0.0.0__b03f5f7f11d50a3aSystem.Configuration.dll" /R:
"C:WindowsassemblyGAC_MSILSystem.Web.Services2.0.0.0__b03f5f7f11d50a3aSystem.Web.Services.dll" /R:
"C:WindowsassemblyGAC_MSILSystem.Runtime.Serialization3.0.0.0__b77a5c561934e089System.Runtime.Serialization.dll" /R:
"C:WindowsassemblyGAC_64Microsoft.Office.Server.Search14.0.0.0__71e9bce111e9429cMicrosoft.Office.Server.Search.dll" /R:
"C:WindowsassemblyGAC_MSILSystem.IdentityModel3.0.0.0__b77a5c561934e089System.IdentityModel.dll" /R:
"C:WindowsassemblyGAC_64Microsoft.SharePoint.Search14.0.0.0__71e9bce111e9429cMicrosoft.SharePoint.Search.dll" /R:
"C:WindowsassemblyGAC_64System.Web2.0.0.0__b03f5f7f11d50a3aSystem.Web.dll" /R:
"C:WindowsassemblyGAC_MSILSystem.Web.Mobile2.0.0.0__b03f5f7f11d50a3aSystem.Web.Mobile.dll" /R:
"C:WindowsassemblyGAC_MSILMicrosoft.SharePoint.Publishing14.0.0.0__71e9bce111e9429cMicrosoft.SharePoint.Publishing.dll" /R:
"C:WindowsassemblyGAC_MSILMicrosoft.Web.CommandUI14.0.0.0__71e9bce111e9429cMicrosoft.Web.CommandUI.dll" /R:
"C:WindowsassemblyGAC_MSILSystem.ServiceModel.Web3.5.0.0__31bf3856ad364e35System.ServiceModel.Web.dll" /R:
"C:WindowsassemblyGAC_MSILSystem2.0.0.0__b77a5c561934e089System.dll" /R:
"C:WindowsMicrosoft.NETFramework64v2.0.50727Temporary ASP.NET Filesroot7e9d64cce402abe9App_GlobalResources.dll" /R:
"C:WindowsassemblyGAC_MSILSystem.ServiceModel3.0.0.0__b77a5c561934e089System.ServiceModel.dll" /R:
"C:WindowsassemblyGAC_MSILSystem.WorkflowServices3.5.0.0__31bf3856ad364e35System.WorkflowServices.dll" /R:
"C:WindowsMicrosoft.NETFramework64v2.0.50727Temporary ASP.NET Filesroot7e9d64cce402abe9App_global.asax.dll" /R:
"C:WindowsMicrosoft.NETFramework64v2.0.50727mscorlib.dll" /R:
"C:WindowsassemblyGAC_64System.Data2.0.0.0__b77a5c561934e089System.Data.dll" /R:
"C:WindowsassemblyGAC_MSILMicrosoft.SharePoint14.0.0.0__71e9bce111e9429cMicrosoft.SharePoint.dll" /R:
"C:WindowsassemblyGAC_MSILSystem.Web.Extensions3.5.0.0__31bf3856ad364e35System.Web.Extensions.dll" /R:
"C:WindowsassemblyGAC_64System.EnterpriseServices2.0.0.0__b03f5f7f11d50a3aSystem.EnterpriseServices.dll" /R:
"C:WindowsassemblyGAC_MSILMicrosoft.Office.Access.Server.UI14.0.0.0__71e9bce111e9429cMicrosoft.Office.Access.Server.UI.dll" /out:
"C:WindowsMicrosoft.NETFramework64v2.0.50727Temporary ASP.NET Filesroot7e9d64cce402abe9App_Web_usereditform.ascx.d7f0a421.emiw9vda.dll" /D:DEBUG /debug+ /optimize- /win32res:
"C:WindowsMicrosoft.NETFramework64v2.0.50727Temporary ASP.NET Filesroot7e9d64cce402abe9q8k8a1mo.res" /w:4 /nowarn:1659;1699;1701  
"C:WindowsMicrosoft.NETFramework64v2.0.50727Temporary ASP.NET Filesroot7e9d64cce402abe9App_Web_usereditform.ascx.d7f0a421.emiw9vda.0.cs" 
"C:WindowsMicrosoft.NETFramework64v2.0.50727Temporary ASP.NET Filesroot7e9d64cce402abe9App_Web_usereditform.ascx.d7f0a421.emiw9vda.1.cs"

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4963; ASP.NET     Version:2.0.50727.4955

错误是随机抛出的,有时当我激活一个新功能时,有时当我只是在SharePoint中浏览页面/列表时.我当然用谷歌搜索了这个问题,我找到了一些适用于其他用户的解决方案(但不适用于所有用户):

>做一个iisreset(对我不起作用)
>做一个iisreset,然后重启(对我不起作用)
>删除ASP.NET临时文件(对我不起作用)
>删除ASP.NET临时文件并重新启动(对我不起作用)
>重新安装(修复).NET框架(唯一适用于我的解决方案)

有没有人知道一个解决方案,解决问题而无需修复.NET框架?这是非常耗时的,更不用说必须一直这样做令人沮丧.错误发生在一天三到十次之间.

更新:这是Windows事件日志中记录的警告.

Event code: 3007 
Event message: A compilation error has occurred. 
Event time: 4/4/2012 12:48:04 PM 
Event time (UTC): 4/4/2012 10:48:04 AM 
Event ID: ea6ef6e68cb14f858564f541ff1389f6 
Event sequence: 42 
Event occurrence: 1 
Event detail code: 0 

Application information: 
    Application domain: /LM/W3SVC/1794141158/ROOT-1-129780060874042968 
    Trust level: WSS_Minimal 
    Application Virtual Path: / 
    Application Path: C:inetpubwwwrootwssVirtualDirectories80 
    Machine name: SP2010 

Process information: 
    Process ID: 13668 
    Process name: w3wp.exe 
    Account name: NT AUTHORITYNETWORK SERVICE 

Exception information: 
    Exception type: HttpCompileException 
    Exception message: External component has thrown an exception. 

Request information: 
    Request URL: http://sp2010/sites/test52/projects/default.aspx 
    Request path: /sites/test52/projects/default.aspx 
    User host address: fe80::18b5:d6c1:ca34:5476/ 
    User: SP20100marcus 
    Is authenticated: True 
    Authentication Type: Negotiate 
    Thread account name: NT AUTHORITYNETWORK SERVICE 

Thread information: 
    Thread ID: 11 
    Thread account name: NT AUTHORITYNETWORK SERVICE 
    Is impersonating: True 
    Stack trace:    at System.Web.Compilation.AssemblyBuilder.Compile()
   at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
   at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath,Boolean noBuild,Boolean allowCrossApp,Boolean allowBuildInPrecompile)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context,VirtualPath virtualPath,Boolean allowBuildInPrecompile)
   at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath,HttpContext context,Boolean noAssert)
   at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath,Type requiredBaseType,Boolean noAssert)
   at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context,String requestType,String physicalPath)
   at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,Boolean& completedSynchronously)


Custom event details:

解决方法

我有同样的问题…我停止了我的应用程序在应用程序池中我回收了与应用程序相关的应用程序池它解决了我的问题.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读