Asp.net apache和mod_mono调试
我已经安装了apache2和mod_mono。 问题是,当我请求时,文件被下载,而不是像aspx处理程序所说的那样执行 mod_mono已启用,一些有用的设置: (已应用)/etc/rc.local:Asp.net apache和mod_mono调试,asp.net,apache,mono,debian,Asp.net,Apache,Mono,Debian,我已经安装了apache2和mod_mono。 问题是,当我请求时,文件被下载,而不是像aspx处理程序所说的那样执行 mod_mono已启用,一些有用的设置: (已应用)/etc/rc.local: if [ ! -e /proc/sys/fs/binfmt_misc/register ]; then /sbin/modprobe binfmt_misc mount -t binfmt_misc none /proc/sys/fs/binfmt_misc fi if [
if [ ! -e /proc/sys/fs/binfmt_misc/register ]; then
/sbin/modprobe binfmt_misc
mount -t binfmt_misc none /proc/sys/fs/binfmt_misc
fi
if [ -e /proc/sys/fs/binfmt_misc/register ]; then
echo ':CLR:M::MZ::/usr/bin/mono:' > /proc/sys/fs/binfmt_misc/register
else
echo "No binfmt_misc support"
exit 1
fi
exit 0
/etc/debian_版本:
7.1
/etc/mono-server4/mono-server4-hosts.conf:
<IfModule mod_mono.c>
MonoUnixSocket default /tmp/.mod_mono_server4
MonoServerPath default /usr/bin/mod-mono-server4
AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx
MonoApplicationsConfigDir default /etc/mono-server4
MonoPath default /usr/lib/mono/4.0:/usr/lib
</IfModule>
.aspx只是一个exe文件的副本,如果我通过mono./My.Services.websitecoms.test.exe运行它,它可以正常工作
aspx和exe文件都有+x表示www数据(所有者)。如果这是
/etc/mono-server4/mono-server4-hosts.conf的全部内容,那么您没有设置任何应用程序。您需要手动或使用mono-server4-admin
和mono-server4-update
(推荐)添加一些
My.Services.WebsiteComms.test.aspx
My.Services.WebsiteComms.test.aspx.config
My.Services.WebsiteComms.test.exe
My.Services.WebsiteComms.test.exe.config
My.Services.WebsiteComms.test.pdb