Hello all,
I'm writing a little CGI C# program which needs to read environment variables such as QUERY_STRING in order to do it's required processing. To do this I was using System.Environment.GetEnvironmentVariable(), which works great on the CLI, but as soon as I have it under IIS CGI 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 the question is, how do I go about getting QUERY_STRING (etc) from a CGI application in IIS?
Thanks
Allan