Hi Robert, Thanks for the reply!
> Well, a HttpContext is only available to ASP.NET applications. Okay - so it can't be used in C# applications at all (or am I getting my terminology muddled up?). > Get them from the environment (see the CGI specs) or resort to ASP.NET. I had been trying to use: System.Environment.GetEnvironmentVariable, which works perfectly on the CLI, but when I run it in the IIS CGI environment I get: Unhandled Exception: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed So I guess I need to grant it permissions to get the environment variable, but I don't have a clue how to do this. Thanks Allan -- View this message in context: http://www.nabble.com/Compiling-C--program-with-Request-object-tp18371017p18372102.html Sent from the Mono - General mailing list archive at Nabble.com. _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
