简体   繁体   English

覆盖IIS7中的webapp.dll时出现编译错误

[英]Compilation Error when overwriting webapp.dll in IIS7

I get the following error when overwriting my asp.net .dll sometimes on my web server. 有时在Web服务器上覆盖asp.net .dll时出现以下错误。 The server is running Windows 2008 and IIS7. 该服务器正在运行Windows 2008和IIS7。 The only way I can seem to resolve the issue is to restart IIS7 completely. 我似乎可以解决该问题的唯一方法是完全重新启动IIS7。

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. 编译器错误消息 :编译器失败,错误代码为-1073741502。

Version Information : Microsoft .NET Framework Version:2.0.50727.4016; 版本信息 :Microsoft .NET Framework版本:2.0.50727.4016; ASP.NET Version:2.0.50727.4016 ASP.NET版本:2.0.50727.4016

If anyone can help then it would be appreciated. 如果有人可以提供帮助,将不胜感激。

This problem occurs when a third-party component is running in the W3wp.exe process that has attached a console to the process. W3wp.exe进程中已将控制台附加到该进程的第三方组件中运行时,会发生此问题。 The Vbc.exe compiler process and the Csc.exe compiler process then inherit this console. 然后,Vbc.exe编译器过程和Csc.exe编译器过程将继承此控制台。 If the console uses a windowstation that does not contain a desktop named DEFAULT, this may cause the compiler processes, or any other process that is spawned from the W3wp.exe process that depends on the User32.dll file, not to start. 如果控制台使用不包含名为DEFAULT的桌面的windowstation,则可能会导致无法启动编译器进程或从依赖于User32.dll文件的W3wp.exe进程派生的任何其他进程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM