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

ASP.NET奇怪的编译错误

发布时间:2020-12-16 00:30:49 所属栏目:asp.Net 来源:网络整理
导读:我不知道我的机器有什么问题,但是有一段时间,我从ASP.NET(对我的所有应用程序)发现以下奇怪的错误。 Compilation ErrorDescription: An error occurred during the compilation of a resource required to service this request. Please review the follow
我不知道我的机器有什么问题,但是有一段时间,我从ASP.NET(对我的所有应用程序)发现以下奇怪的错误。
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:WindowsSysWOW64inetsrv> "C:WindowsMicrosoft.NETFrameworkv4.0.30319csc.exe" /t:library /utf8output /R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Filesroot75855fbd1e953b27assemblydl32689d6b5f0791420_961fcc01wnvhtmlconvert.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystemv4.0_4.0.0.0__b77a5c561934e089System.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Drawingv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Drawing.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_32System.Webv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Web.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.Entityv4.0_4.0.0.0__b77a5c561934e089System.Web.Entity.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.ServiceModel.Webv4.0_4.0.0.0__31bf3856ad364e35System.ServiceModel.Web.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.IdentityModelv4.0_4.0.0.0__b77a5c561934e089System.IdentityModel.dll" /R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Filesroot75855fbd1e953b27assemblydl3d08c81cd4d77c01f_961fcc01AjaxControlToolkit.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.ServiceModel.Activationv4.0_4.0.0.0__31bf3856ad364e35System.ServiceModel.Activation.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.ApplicationServicesv4.0_4.0.0.0__31bf3856ad364e35System.Web.ApplicationServices.dll" ......AND SO ON.....

事实:

>杀死工作进程临时修复问题
我甚至重新安装了我的.NET框架!它没有工作。
>重新启动IIS没有帮助

什么可能导致这个问题?

解决方法

好的,经过几天的努力,我终于解决了这个问题。

>不是通过清除ASP.NET temp
>不是重新安装.NET框架!

简单!

>我将应用程序池标识从“本地系统”更改为“ApplicationPoolIdentity”

显然,我的本地系统有一个权限错误,C#编译器(csc.exe)无法访问一些资源和源代码。

为了更改您的AppPool身份,请遵循以下步骤:http://learn.iis.net/page.aspx/624/application-pool-identities/

(编辑:李大同)

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

    推荐文章
      热点阅读