问题描述
我有运行Windows Server 2008 R2标准,我使用的SharePoint开发(Visual Studio 2010中安装在虚拟机上)的虚拟机(在我的笔记本电脑上运行在VMWare工作站8.0.2)和SharePoint Server 2010 SP1。有时候,我收到以下错误信息:
中的/应用程序中的服务器错误。
-------------------------------------------------- ------------------------------
编译错误
说明:该请求提供服务所需资源的编译过程中出现错误。请检查下面的特定错误详细信息并适当地修改源$ C $ C。
编译器错误信息:失败,出现错误code -1073741502的编译器。
显示详细的编译器输出:
C:\ WINDOWS \ SYSTEM32 \ INETSRV>
C:\ WINDOWS \ Microsoft.NET \ Framework64 \ V2.0.50727 \ csc.exe的/ T:库/ utf8output / R:
C:\ WINDOWS \组装\ GAC_MSIL \ System.Drawing中\ 2.0.0.0__b03f5f7f11d50a3a \ System.Drawing.dll程序/ R:
C:\ WINDOWS \组装\ GAC_MSIL \的System.Xml \ 2.0.0.0__b77a5c561934e089 \ system.xml.dll的/ R:
C:\ WINDOWS \组装\ 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 \组装\ 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 \组装\ GAC_64 \的System.Web \ 2.0.0.0__b03f5f7f11d50a3a \ System.Web.dll程序/ R:
C:\ WINDOWS \组装\ 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 \组装\ GAC_MSIL \ SYSTEM \ 2.0.0.0__b77a5c561934e089 \ System.dll中/ R:
C:\ WINDOWS \ Microsoft.NET \ Framework64 \ V2.0.50727 \临时ASP.NET文件\ ROOT \ 7e9d64cc \ e402abe9 \ App_GlobalResources.dll/ R:
C:\ WINDOWS \组装\ 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 \临时ASP.NET文件\ ROOT \ 7e9d64cc \ e402abe9 \ App_global.asax.dll/ R:
C:\ WINDOWS \ Microsoft.NET \ Framework64 \ V2.0.50727 \ mscorlib.dll中/ R:
C:\ WINDOWS \组装\ 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"输入/输出:
C:\ WINDOWS \ Microsoft.NET \ Framework64 \ V2.0.50727 \临时ASP.NET文件\ ROOT \ 7e9d64cc \ e402abe9 \ App_Web_usereditform.ascx.d7f0a421.emiw9vda.dll/ D:DEBUG /调试+ / optimize- / win32res:
C:\ WINDOWS \ Microsoft.NET \ Framework64 \ V2.0.50727 \临时ASP.NET文件\ ROOT \ 7e9d64cc \ e402abe9 \ q8k8a1mo.res/ W:4 / nowarn:1659; 1699; 1701
C:\ WINDOWS \ Microsoft.NET \ Framework64 \ V2.0.50727 \临时ASP.NET文件\ ROOT \ 7e9d64cc \ e402abe9 \ App_Web_usereditform.ascx.d7f0a421.emiw9vda.0.cs
C:\ WINDOWS \ Microsoft.NET \ Framework64 \ V2.0.50727 \临时ASP.NET文件\ ROOT \ 7e9d64cc \ e402abe9 \ App_Web_usereditform.ascx.d7f0a421.emiw9vda.1.cs
-------------------------------------------------- ------------------------------
版本信息:Microsoft .NET Framework版本:2.0.50727.4963; ASP.NET版本:2.0.50727.4955
错误被抛出相当随意,有时当我启动一个新的功能,有时当我只是浏览网页/列表在SharePoint。我当然用Google搜索的问题,我已经找到了一些解决方案,这对于一些其他用户的工作(但不是全部):
- 请一个IISRESET(我不工作)
- 请一个IISRESET,然后重新启动(我不工作)
- 在ASP.NET中删除临时文件(对我来说不工作)
- 在ASP.NET中删除临时文件,并重新启动(我不工作)
- 在重新安装(维修).NET框架(对我的作品的唯一解决办法)
有没有人有一个解决方案,没有固定修复.NET框架问题的想法?这是相当耗费时间,更何况令人沮丧不得不做这一切的时候。任何位置发生之间的天的三至十倍的误差。
更新:这是记录在Windows事件日志中警告
事件code:3007
事件消息:发生了编译错误。
活动时间:2012年4月4日下午12点48分○四秒
事件时间(UTC):2012年4月4日上午10时48分04秒
事件ID:ea6ef6e68cb14f858564f541ff1389f6
事件序列:42
事件发生:1
事件详细信息code:0
应用信息:
应用领域:/ LM / W3SVC / 1794141158 /根,1-129780060874042968
信任级别:WSS_Minimal
应用程序虚拟路径:/
应用程序路径:C:\的Inetpub \ wwwroot的\ WSS \ VirtualDirectories \ 80 \
机器名称:SP2010
进程信息:
进程ID:13668
进程名:w3wp.exe
帐户名:NT AUTHORITY \ NETWORK SERVICE
异常信息:
异常类型:HttpCompileException
异常消息:外部组件发生异常。
请求信息:
请求的URL:http://sp2010/sites/test52/projects/default.aspx
请求路径:/sites/test52/projects/default.aspx
用户主机地址:FE80 :: 18b5:d6c1:CA34:5476 /
用户:SP20100 \马库斯
通过身份验证:真
身份验证类型:协商
线程帐户名:NT AUTHORITY \ NETWORK SERVICE
线程信息:
线程ID:11
线程帐户名:NT AUTHORITY \ NETWORK SERVICE
是模拟:真
堆栈跟踪:在System.Web.Compilation.AssemblyBuilder.Compile()
在System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
在System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
在System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath,布尔noBuild,布尔allowCrossApp,布尔allowBuildIn precompile)
在System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext的背景下,VirtualPath virtualPath,布尔noBuild,布尔allowCrossApp,布尔allowBuildIn precompile)
在System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath,HttpContext的背景下,布尔allowCrossApp,布尔noAssert)
在System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath,类型requiredBaseType,HttpContext的背景下,布尔allowCrossApp,布尔noAssert)
在System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext的背景下,字符串请求类型,VirtualPath virtualPath,串physicalPath)
在System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
在System.Web.HttpApplication.ExecuteStep(IExecutionStep步骤,布尔和放大器; completedSynchronously)
自定义事件的详细信息:
我有同样的问题...我停下我的应用程序中的应用程序池我回收的应用程序池相关的应用程序,它解决了我的问题。
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). 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. 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):
- Do an iisreset (doesn't work for me)
- Do an iisreset, then reboot (doesn't work for me)
- Remove ASP.NET temporary files (doesn't work for me)
- Remove ASP.NET temporary files and reboot (doesn't work for me)
- Reinstall (repair) .NET framework (the only solution that works for me)
Does anyone have an idea of a solution that fixes the problem without repairing .NET framework? 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.
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:
I had the same problem ... i stopped my app the in the app pool i recycled the app pool related to the app it solved my issue.
这篇关于编译器失败,错误code -1073741502(SharePoint 2010中基于Windows Server 2008 R2 SP1运行)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!