简体   繁体   English

某些页面上的服务器编译错误

[英]Server compilation error on some pages apache mono

We have a .net web application running in fedora 6 under Apache & mono 1.1.18 version. 我们有一个.net Web应用程序在Apache和mono 1.1.18版本下的fedora 6中运行。 So long it was working good. 这么久了,它运作良好。 Suddenly I'm getting the following Server Error in some of the pages, 突然我在某些页面中收到以下服务器错误,

Server Error in '/' Application
Compilation Error
Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error.

Error message:
(0,0) : error CS0006: Cannot find assembly `/tmp/apache-temp-aspnet-0/383ed40f/shadow-J7sRQf'

But please note, rest of the pages are loading properly. 但请注意,其余页面均正确加载。 I know it has something to do with JIT compilation, but why it is happening on some specific pages. 我知道它与JIT编译有关,但是为什么它在某些特定页面上发生。 Also the error 'Cannot find assembly -----/shadow-J7sRQf' is something suspicious. 另外,错误“无法找到程序集----- / shadow-J7sRQf”也是可疑的。 The same error is displayed across all the browsers all the time. 始终在所有浏览器中显示相同的错误。

I have not restarted apache or rebooted the system, as I'm not sure whether this error will occur again and i want to root cause it instead of just ignoring it. 我尚未重新启动apache或重新启动系统,因为我不确定是否会再次发生此错误,因此我想根源导致该错误,而不仅仅是忽略它。 i didn't find anything on the httpd log also. 我也没有在httpd日志上找到任何东西。 I tried to Google it, but was unlucky to find anything specific. 我尝试使用Google进行搜索,但很遗憾找不到任何特定的东西。 Can anyone help me on this? 谁可以帮我这个事? thanks in advance. 提前致谢。

Wow, mono 1.1.18 is really old! 哇,单声道1.1.18真的很旧!

If I were you, I would try to stop apache and clean everything in the temporary compilation directory /tmp/apache-temp-aspnet-0/ This should force mono to re-generate everything in this directory. 如果您是我,我将尝试停止apache并清理临时编译目录/ tmp / apache-temp-aspnet-0 /中的所有内容,这将强制mono重新生成此目录中的所有内容。

Then, restart apache and see if it helps. 然后,重新启动apache并查看是否有帮助。

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

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