我在网上找到下面这段代码!(http://pc.sheup.com/pc/pc2448.htm): class zzz { public static void Main() { System.Console.WriteLine("Content-Type:text/html\n"); System.Console.WriteLine(" < body bgcolor=blue >"); System.Console.WriteLine(" < center > < p > < p >"); System.Console.WriteLine(" < b >Hello to everyone.Its me SunWen < b >"); System.Console.WriteLine(" < /body >"); } } 把该代码编译成a.exe文件,站点的权限定为“脚本和可执行文件”,就可以用http://localhost/a.exe得到一个页面。 但是我写出来了就不行,得到错误信息如下: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: 未处理的异常: System.ArgumentException: URL 上的无效目录。 这是怎么回事呢?望各位大侠不吝赐教!!! |