mod-mono

How to avoid apache to stop responding in MVC application

不羁的心 提交于 2020-01-16 00:44:27
问题 ASP.NET MVC4 application is running using Apache, Mono 3.2.8 and mod_mono in Debian x64 Linux Some times in every month server stops responding: There is also mod_mono control panel and apache server status module istalled. Typing mysite.com , mysite.com/server-status or mysite.com/mono in browser waits forever. top shows that cpu usage is almost zero and there are lot of free memory. There is no special timeout in web.config so every thread should terminated after 110 seconds even if it

HttpCompileException: “External exception” when trying to access razor view in ServiceStack hosted on Apache+mod_mono

雨燕双飞 提交于 2020-01-05 09:34:39
问题 I am getting HttpCompileException when trying to access a razor view. Error log contains no information. The same deployment works on NGinx+FastCGI, but not on Apache+mod_mono. I am not using the mod_mono AutoConfiguration because I have not (yet) found a way how to make it work. This is my "manual" apache2.conf configuration for mono: MonoAutoApplication disabled AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx .axd MonoApplications "/:/var/www/MyAppName" <Location /> SetHandler

How to fix SIGSEGV which prevents MVC application running in Mono

我们两清 提交于 2019-12-25 03:04:09
问题 ASP.NET MVC application is installed in Debian server using Apache and mod_mono. Trying to start it causes SIGSEGV exception in Mono. Apache error.log contains [Wed Mar 06 22:07:13 2019] [notice] Apache/2.2.22 (Debian) mod_mono/3.12 configured -- resuming normal operations Listening on: /tmp/.mod_mono_server4 Root directory: / Stacktrace: [Wed Mar 06 22:07:35 2019] [error] (70014)End of file found: read_data failed [Wed Mar 06 22:07:35 2019] [error] Command stream corrupted, last command was

Trouble installing mod_mono on Mac OSX Lion

落花浮王杯 提交于 2019-12-23 02:20:14
问题 There is another question regarding installing mod_mono on OSX, but I'm going to assume that was before Lion came about, which had some breaking changes for developers (like python versions). I've followed the instructions in the INSTALL readme of mod_mono-2.10. No Avail. Exactly what I've done is this: tar xvfz mod_mono-2.10.tar.gz cd mod_mono-X.Y.Z ./configure --prefix=/usr make make install $ apachectl -t httpd: Syntax error on line 54 of /private/etc/apache2/httpd.conf: Syntax error on

mod_mono gives EOF errors on fresh centos install

会有一股神秘感。 提交于 2019-12-22 10:51:27
问题 I have a fresh install of Centos 6.3 fully updated. I have installed mono, xsp, and mod_mono from sources. Each package compiled perfectly. They were all installed with a prefix of /usr/local/mono (so everything sits under /usr/local/mono) I have added "Include conf/mod_mono.conf" to my httpd.conf file. I generated a virtual host using http://go-mono.com/config-mod-mono/. I had to customize it slightly in order to get the right binary path, but that's it. Here is my vhost contents (I removed

Why does MySql Connector.Net work on my Windows box but not on Mono?

你离开我真会死。 提交于 2019-12-22 01:19:28
问题 I have installed Mono (version 2.10.2), mod_mono and have successfully tested it with both an index.html and an index.aspx echoing the date. My problem is that I can't get MySQL to work with Mono; I have downloaded the mysql-connector-net-6.4.3-noinstall.zip file, renamed the dll to MySql.Data.dll, (from v2 folder) I have installed with gacutil -i MySql.Data.dll and edited both machine.config files (for 2.0 and 4.0) adding the following: <add name="MySQL Data Provider" invariant="MySql.Data

Hosting WCF service on linux

天涯浪子 提交于 2019-12-17 22:53:19
问题 Is there Any way of hosting WCF service on Linux. I read about wine but i didn't see any example of hosting WCF service with it. P.S : I have tried mono and mod_mono but to no avail. 回答1: You can host it in a stand-alone console application like so: using System; using System.ServiceModel; using Service; namespace Host { class MainClass { public static void Main (string[] args) { Console.WriteLine ("WCF Host!"); var binding = new BasicHttpBinding (); var address = new Uri ("http://localhost

How to run MVC application with newer Mono in Debian 9.3

痞子三分冷 提交于 2019-12-11 23:24:49
问题 Latest release of Mono was installed in Debian 9.3 using cd /usr/local/src wget https://github.com/mono/libgdiplus/archive/5.6.1.tar.gz tar -xvf 5.6.1.tar.gz cd libgdiplus-5.6.1 mkdir /opt/m518 apt-get install libtool autoconf glib-2.0 ./autogen.sh --prefix=/opt/m518 make make install apt-get install git autoconf libtool automake build-essential gettext cmake python git clone --recursive https://github.com/mono/mono.git --branch=mono-5.18.1.0 cd mono ./autogen.sh --prefix=/opt/m518 make make

Servicestack user session not working

大兔子大兔子 提交于 2019-12-11 04:51:17
问题 I have an API written in ServiceStack and I am attempting to build in authentication for clients. At the moment this API will only be accessed by Android clients (Xamarin / C#). The API itself is running on a Debian server with Apache / mod_mono After reading up on Github, I am still not 100% sure how to put this together in such a way that... once the client has provided valid credentials (For testing, basic HTTP authentication) the user gets a session and the credentials are not checked

Httpd.conf multiple VirtualHost sections (was: Mono ASP.NET MVC AutoHosting issues)

点点圈 提交于 2019-12-11 03:55:31
问题 I'm doing exactly this by trying to disable AutoHosting. However now I get "Failed to connect to mod-mono-server after several attempts to spawn the process." in the logs. The path is correct Here's my config: <VirtualHost *:80> ServerName myserver.com DocumentRoot /home/abe/html/ MonoServerPath myserver.com "/usr/local/bin/mod-mono-server2" MonoDebug myserver.com true MonoSetEnv myserver.com MONO_IOMAP=all MonoAutoApplication disabled MonoApplications myserver.com "/:/home/abe/html/"