Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET - how to display server stats / info?

Tags:

asp.net

In php there is a function phpinfo(); which displays a whole load of server stats and config information. What is the equivalent in ASP.NET? is there anything?

cheers

like image 784
MalcomTucker Avatar asked Nov 24 '25 06:11

MalcomTucker


2 Answers

You can now use System.Web.Helpers.ServerInfo.GetHtml() (in System.Web.Helpers.dll) which returns an HTML table of all the environment variables, very much like phpinfo() does.

http://msdn.microsoft.com/en-us/library/system.web.helpers.serverinfo.gethtml.aspx

like image 95
Dan Diplo Avatar answered Nov 26 '25 22:11

Dan Diplo


Simple answer: No.

But after enabling tracing for the whole application in the web.config, you can view trace.axd for similiar info.

<configuration>
  <system.web>
    <trace enabled="true" pageOutput="false" requestLimit="40" localOnly="false"/>
  </system.web>
</configuration>
like image 44
CSharper Avatar answered Nov 26 '25 23:11

CSharper



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!