[Mono-aspnet-list] MacOS + Nginx + FastCGI + MVC : Failed to process connection
lfont
ljph.fontaine at gmail.com
Tue Aug 17 15:09:17 EDT 2010
Hello,
I try to use fastcgi-mono-server2 with nginx on a mac os x (10.6) box to
serve an ASP.NET MVC 2 project with mono 2.6.7 but i always get this
message:
Error Failed to process connection. Reason: Argument cannot be null.
Parameter name: s
My nginx configuration:
location / {
root /Library/WebServer/MyProject/;
index index.html index.htm default.aspx Default.aspx;
fastcgi_index Default.aspx;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param PATH_INFO "";
fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
}
I launch fastcgi-mono-server2 with:
fastcgi-mono-server2 /root=/Library/WebServer/MyProject/ /applications=/:.
/socket=tcp:127.0.0.1:9000
I get this in debug mode:
[2010-08-17 20:44:44Z] Debug Accepting an incoming connection.
[2010-08-17 20:44:44Z] Notice Beginning to receive records on connection.
[2010-08-17 20:44:44Z] Debug Record received. (Type: BeginRequest, ID: 1,
Length: 8)
[2010-08-17 20:44:44Z] Debug Record received. (Type: Params, ID: 1,
Length: 414)
[2010-08-17 20:44:44Z] Debug Record received. (Type: Params, ID: 1,
Length: 0)
[2010-08-17 20:44:44Z] Debug Read parameter. (PATH_INFO = )
[2010-08-17 20:44:44Z] Debug Read parameter. (SCRIPT_FILENAME =
/Library/WebServer/MyProject/favicon.ico)
[2010-08-17 20:44:44Z] Debug Read parameter. (HTTP_HOST = xxx.domain.org)
[2010-08-17 20:44:44Z] Debug Read parameter. (HTTP_CONNECTION =
keep-alive)
[2010-08-17 20:44:44Z] Debug Read parameter. (HTTP_USER_AGENT =
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/533.4
(KHTML, like Gecko) Chrome/5.0.375.126 Safari/533.4)
[2010-08-17 20:44:44Z] Debug Read parameter. (HTTP_ACCEPT = */*)
[2010-08-17 20:44:44Z] Debug Read parameter. (HTTP_ACCEPT_ENCODING =
gzip,deflate,sdch)
[2010-08-17 20:44:44Z] Debug Read parameter. (HTTP_ACCEPT_LANGUAGE =
en-US,en;q=0.8,fr;q=0.6)
[2010-08-17 20:44:44Z] Debug Read parameter. (HTTP_ACCEPT_CHARSET =
ISO-8859-1,utf-8;q=0.7,*;q=0.3)
[2010-08-17 20:44:44Z] Error Failed to process connection. Reason:
Argument cannot be null.
Parameter name: s
I have no problem when i run the project with xsp2 like this:
xsp2 --root /Library/WebServer/MyProject --applications /:.
I look a lot configuration examples on the net but i can't see what is wrong
with my setup. Someone has already get a setup like this work?
Thanks,
--
View this message in context: http://mono.1490590.n4.nabble.com/MacOS-Nginx-FastCGI-MVC-Failed-to-process-connection-tp2328875p2328875.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
More information about the Mono-aspnet-list
mailing list