[Mono-list] Running CGI

Alan Tam Tam@SiuLung.com
Mon, 20 Jan 2003 02:14:17 +0800


Dear all,

I am new to this mailing list. Please tell me if you have discussed this
earlier.

I have compiled a C# program with mcs and run it without problem in shell.
However, when I tried to put it into apache 2.0 and run it, the following
error is found in the error log. May I know how I can fix it? Thank you.

[Mon Jan 20 02:18:04 2003] [error] [client 127.0.0.1] **
(/var/www2/helloworld.exe:13206): CRITICAL **: _wapi_shm_attach: shared file
[/var/www/.wapi/shared_data-0] open error: No such file or directory,
referer: http://localhost:8200/

Source:
using System;
using System.Collections;

class HttpContext {
  public static void Main() {
    Console.WriteLine("Content-type: text/html");
    Console.WriteLine();
    foreach (DictionaryEntry entry in
             Environment.GetEnvironmentVariables()) {
      Console.WriteLine(entry.Key + "=" + entry.Value);
    }
  }
}

Regards,
Alan