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

frankadelic picture frankadelic · Feb 13, 2009 · Viewed 17.1k times · Source

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

Malik picture Malik · Jul 10, 2010

An empty page with this header should do the trick:

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