是mod_mono:随机CompilationException错误 [英] mod_mono: Random CompilationException errors

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

问题描述

在服务器重新启动后,我有时会随机CompilationException象这样的错误:

After a server restart I sometimes get random CompilationException errors like this:

CompilationException: CS0006: Metadata file `/tmp/apache-temp-aspnet-0/ca373c84/assembly/shadow/10cad1cb/02cb7ade_1201ab15_00000001/ZedGraph.dll' could not be found -> HttpException: Single file build failed

和您无法访问应用程序。如果我再重新启动服务器,那么问题就会消失。

and you can't access the application. If I restart the server again then the problem disappears.

这会触发错误的文件可能是我自己的DLL的一个或依赖,像MYSQL.DLL例如

The file that triggers the error can be one of my own dll's or a dependency, like mysql.dll for instance.

我使用单声道2.10.2,CentOS版本5.7(决赛),Apache和是mod_mono上的Linode VPS。

I am using mono 2.10.2, CentOS release 5.7 (Final), Apache and mod_mono on a Linode VPS.

什么可以原因?任何想法

Any idea of what can be the cause?

编辑:由于我的麻烦开始时,我搬到的Linode和他们使用XEN,我发现--with-xen_opt选项= YES,看起来有希望的:
http://mono-project.com/Advanced_Mono_Compile_Options

Since my troubles started when I moved to Linode and they use XEN, I have found the option --with-xen_opt=yes that looks promissing: http://mono-project.com/Advanced_Mono_Compile_Options

推荐答案

听起来像的影子复制和编辑一个bug(竞争条件吗?)。已经有其他人发现之前固定......看到 HTTP ://grendello.blogspot.com/2007/08/new-modmono-and-xsp-developments.html

Sounds like a bug (race condition?) with the shadow copying and compilation. There have been others found and fixed before... see http://grendello.blogspot.com/2007/08/new-modmono-and-xsp-developments.html

这是一个类似的问题在2006年 HTTP报告://lists.ximian.com/pipermail/mono-list/2006-March/030970.html

And this is a report of a similar problem in 2006 http://lists.ximian.com/pipermail/mono-list/2006-March/030970.html

而不是重新启动系统,你可以尝试重新启动Apache的。请注意,我发现它可以帮助停止Apache再启动,而不是重新启动。

Rather than rebooting the system, you can try restarting apache. Note, I have found it can help to stop apache and then start, rather than a restart.

您还可以启用是mod_mono控制面板,并从那里重新启动应用程序。在apache配置添加这一点。

You can also enable the mod_mono control panel and restart the application from there. Add this in apache config.

<Location /monocp>
  SetHandler mono-ctrl
  Order deny,allow
  Deny from all
  Allow from 127.0.0.1 <YOURIP>
</Location>

要自动执行此过程看一看 monit的

To automate this process take a look at Monit.

这篇关于是mod_mono:随机CompilationException错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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