frankadelic frankadelic - 2 months ago 17
ASP.NET (C#) Question

How to print similar information as phpinfo() but for ASP.NET?

I've looped over the

Request.ServerVariables
collection in ASP.NET, but it's not as comprehensive as
phpinfo()
.

How can I print all that information, including server software, drivers, etc, for ASP.NET?

Answer

An empty page with this header should do the trick:

<%@ Page Trace="true"  Language="C#" 
    ContentType="text/html" ResponseEncoding="utf-8" %>