Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed mono fast cgi for nginx following instructions on: but when i try to load test aspx file i getting 502 error gateway,and following error in error log: 2011/11/28 18:49:51 [error] 5376#0: *6 upstream sent unexpected FastCGI record: 3 while reading response header from upstream, client: ipadress, server: ipadress, request: "GET /default.aspx HTTP/1.1", upstream: "fastcgi://", host: "ipadress" I tried different things to change but always same result,except maybe sometime in error log is number 1 or 3 instead 6.Nginx ver is 1.03 64 bit,mono and xsp latest versions. Any idea what could be wrong?

share|improve this question

Figured how problem was in xsp not properly configured,it was not connecting to installed mono.Nginx proxy works fine so nginx part it's resolved,but now i getting following error when loading following test aspx file:

<html> <body bgcolor="yellow"> <center><h2>Hello ServerFault!</h2><p><%Response.Write(now())%></p> </center> </body></html>

Compilation Error

Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error.

Compiler Error Message: CS1525: Unexpected symbol `__output' /default.aspx

Show Detailed Compiler Output:

gmcs /target:library /lib:"/usr/local/nginx/html/bin" /debug- /optimize+ /warn:0 /out:"/tmp/root-temp-aspnet-0/e96ac5a8/App_Web_2a0e1fec.dll" /r:"/usr/local/lib/mono/gac/System/" /r:"/usr/local/lib/mono/gac/System.Configuration/" /r:"/usr/local/lib/mono/gac/System.Data/" /r:"/usr/local/lib/mono/gac/System.Drawing/" /r:"/usr/local/lib/mono/gac/System.Web/" /r:"/usr/local/lib/mono/gac/System.Web.Services/" /r:"/usr/local/lib/mono/gac/System.Runtime.Serialization/" /r:"/usr/local/lib/mono/gac/System.IdentityModel/" /r:"/usr/local/lib/mono/gac/System.ServiceModel/" /r:"/usr/local/lib/mono/gac/System.ServiceModel.Web/" /r:"/usr/local/lib/mono/gac/System.Xml/" /nowarn:0169 -- "/tmp/root-temp-aspnet-0/e96ac5a8/App_Web_2a0e1fec_0.cs"

/tmp/root-temp-aspnet-0/e96ac5a8/App_Web_2a0e1fec_0.cs(81,1): error CS1525: Unexpected symbol `__output'

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.