[英]The compiler failed with error code -1073741502 (SharePoint 2010 SP1 running on Windows Server 2008 R2)
I have a virtual machine (running in VMWare Workstation 8.0.2 on my laptop) running Windows Server 2008 R2 Standard and SharePoint Server 2010 SP1 that I use for SharePoint development (Visual Studio 2010 is installed on the virtual machine).我有一台运行 Windows Server 2008 R2 Standard 和 SharePoint Server 2010 SP1 的虚拟机(在笔记本电脑上的 VMWare Workstation 8.0.2 中运行),用于 SharePoint 开发(Visual Studio 2010 安装在虚拟机上)。 Sometimes I get the following error message:
有时我会收到以下错误消息:
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:\windows\system32\inetsrv>
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\csc.exe" /t:library /utf8output /R:
"C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:
"C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:
"C:\Windows\assembly\GAC_MSIL\AscomADManager\1.0.0.0__e27e5c95e5e50246\AscomADManager.dll" /R:
"C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.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.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:
"C:\Windows\assembly\GAC_64\Microsoft.Office.Server.Search\14.0.0.0__71e9bce111e9429c\Microsoft.Office.Server.Search.dll" /R:
"C:\Windows\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:
"C:\Windows\assembly\GAC_64\Microsoft.SharePoint.Search\14.0.0.0__71e9bce111e9429c\Microsoft.SharePoint.Search.dll" /R:
"C:\Windows\assembly\GAC_64\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:
"C:\Windows\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:
"C:\Windows\assembly\GAC_MSIL\Microsoft.SharePoint.Publishing\14.0.0.0__71e9bce111e9429c\Microsoft.SharePoint.Publishing.dll" /R:
"C:\Windows\assembly\GAC_MSIL\Microsoft.Web.CommandUI\14.0.0.0__71e9bce111e9429c\Microsoft.Web.CommandUI.dll" /R:
"C:\Windows\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:
"C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\7e9d64cc\e402abe9\App_GlobalResources.dll" /R:
"C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:
"C:\Windows\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\7e9d64cc\e402abe9\App_global.asax.dll" /R:
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorlib.dll" /R:
"C:\Windows\assembly\GAC_64\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:
"C:\Windows\assembly\GAC_MSIL\Microsoft.SharePoint\14.0.0.0__71e9bce111e9429c\Microsoft.SharePoint.dll" /R:
"C:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:
"C:\Windows\assembly\GAC_64\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:
"C:\Windows\assembly\GAC_MSIL\Microsoft.Office.Access.Server.UI\14.0.0.0__71e9bce111e9429c\Microsoft.Office.Access.Server.UI.dll" /out:
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\7e9d64cc\e402abe9\App_Web_usereditform.ascx.d7f0a421.emiw9vda.dll" /D:DEBUG /debug+ /optimize- /win32res:
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\7e9d64cc\e402abe9\q8k8a1mo.res" /w:4 /nowarn:1659;1699;1701
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\7e9d64cc\e402abe9\App_Web_usereditform.ascx.d7f0a421.emiw9vda.0.cs"
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\7e9d64cc\e402abe9\App_Web_usereditform.ascx.d7f0a421.emiw9vda.1.cs"
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4963; ASP.NET Version:2.0.50727.4955
The error is thrown quite randomly, sometimes when I activate a new feature, sometimes when I'm just browsing pages/lists in SharePoint.该错误是随机抛出的,有时是在我激活新功能时,有时是在我浏览 SharePoint 中的页面/列表时。 I have of course googled the problem, and I've found some solutions to it that have worked for some other users (but not for all):
我当然用谷歌搜索了这个问题,我找到了一些对其他用户有用的解决方案(但不是全部):
Does anyone have an idea of a solution that fixes the problem without repairing .NET framework?有没有人有一个解决方案的想法,可以在不修复 .NET 框架的情况下解决问题? It's quite time consuming, not to mention frustrating to have to do this all the time.
这非常耗时,更不用说一直这样做令人沮丧。 The error occurs anywhere between three to ten times a day.
该错误每天发生三到十次。
Update: This is the warning that is logged in the Windows event log.更新:这是记录在 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:\inetpub\wwwroot\wss\VirtualDirectories\80\
Machine name: SP2010
Process information:
Process ID: 13668
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK 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: SP20100\marcus
Is authenticated: True
Authentication Type: Negotiate
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 11
Thread account name: NT AUTHORITY\NETWORK 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 noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Custom event details:
我遇到了同样的问题......我在应用程序池中停止了我的应用程序,我回收了与它解决了我的问题的应用程序相关的应用程序池。
Thank you very much , I had a similar problem and I can confirm (After all the others attempts) only the 'repair' execution of the Framework 3.5 fixed the problem.非常感谢,我遇到了类似的问题,我可以确认(在所有其他人尝试之后)只有 Framework 3.5 的“修复”执行解决了这个问题。
Reinstall (repair) .NET framework (the only solution that works for me)重新安装(修复).NET 框架(唯一适合我的解决方案)
I just had this issue happen after deploying with version 16.9.3 of VS 2019. I deployed to three machines all VMs running windows server 2012 and only one had the problem.在使用 VS 2019 的 16.9.3 版进行部署后,我刚刚发生了这个问题。我将所有运行 Windows Server 2012 的虚拟机部署到了三台机器上,但只有一台出现了问题。 Tried several of the solutions above with no luck.
尝试了上述几种解决方案,但没有成功。 I finally tried rebooting the server with the issue and that solved the problem for me.
我终于尝试用这个问题重新启动服务器,这为我解决了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.