ASP.NET 奇怪的编译错误 [英] ASP.NET strange compilation error

查看:26
本文介绍了ASP.NET 奇怪的编译错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道我的机器出了什么问题,但是有一段时间我从 ASP.NET 收到以下奇怪的错误(对于我的所有应用程序).

I don't know what's wrong with my machine, but it's a while that I'm getting the following strange error from ASP.NET (for all my applications).

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 Files
oot75855fbd1e953b27assemblydl32689d6b5f0791420_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 Files
oot75855fbd1e953b27assemblydl3d08c81cd4d77c01f_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.....

事实:

  1. 杀死工作进程暂时解决了问题
  2. 我什至重新安装了我的 .NET 框架!它没有用.
  3. 重新启动 IIS 没有帮助

什么会导致这个问题?

推荐答案

好的,在这个问题上挣扎了几天后,我终于解决了.

OK, after days struggling with this issue, I finally fixed it.

  • 不是通过清除 ASP.NET 温度
  • 不是通过重新安装 .NET 框架!

简单!

  • 我将应用程序池标识从本地系统"更改为ApplicationPoolIdentity"

显然我的本地系统存在权限错误,导致 C# 编译器 (csc.exe) 无法访问某些资源和源代码.

Apparently there was a permission error with my local system that the C# compiler (csc.exe) could not access some resources and source codes.

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

In order to change your AppPool identity follow steps given here: http://learn.iis.net/page.aspx/624/application-pool-identities/

这篇关于ASP.NET 奇怪的编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆