编译器错误消息:编译器失败,错误代码为-1073741502-可能损坏的编译器 [英] Compiler Error Message: The compiler failed with error code -1073741502 - possibly corrupted compiler

查看:1122
本文介绍了编译器错误消息:编译器失败,错误代码为-1073741502-可能损坏的编译器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近遇到了一个问题,我会从我的应用程序的各个页面中随机获取编译错误:

I recently had an issue where I would randomly get compilation errors from various pages of my app:


编译错误

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.

编译器错误消息:编译器失败,错误代码为-1073741502。

Compiler Error Message: The compiler failed with error code -1073741502.

我尝试了各种方法(删除临时文件,重新启动IIS,回收应用程序池,获得临时文件夹的所有权并授予其权限),但最终这篇文章帮助我确定它可能是损坏的C#编译器,因为我们的问题是如此相似。

I tried all kinds of things (deleting temp files, restarting IIS, recycling app pool, taking ownership of and giving permission to temp folders) but in the end this article helped me work out it was probably a corrupted C# Compiler, since our problems were so similar.

所以修复我的.NET安装似乎奏效。但是,经过几天的正常工作后,我又开始再次收到该错误,看来我的C#编译器再次损坏。谁能说出为什么这种情况会持续发生吗?还是其他可能?

So repairing my installation of .NET seemed to have worked. However, after a couple of days of everything working okay I have started to get the error again, and it seems my C# Compiler is corrupted again. Can anyone suggest why this would keep happening? Or what else it might be?

推荐答案

关闭防病毒功能之一(在访问文件夹时扫描文件夹,并且可能会导致访问问题)或将应用程序池标识设置为ApplicationPoolIdentity(比NetworkService更智能地分配资源)似乎已经解决了该问题。

One of turning off Anti-Virus (scans folders as they are accessed and might cause access problems) or setting the Application Pool Identity to ApplicationPoolIdentity (assigns resources more intelligently than NetworkService) seems to have fixed it.

这篇关于编译器错误消息:编译器失败,错误代码为-1073741502-可能损坏的编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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