MalcomTucker
MalcomTucker

Reputation: 269

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

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

Upvotes: 3

Views: 4595

Answers (4)

Dan Diplo
Dan Diplo

Reputation: 25339

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

Upvotes: 4

M. Jahedbozorgan
M. Jahedbozorgan

Reputation: 7054

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>

Upvotes: 2

Remco Eissing
Remco Eissing

Reputation: 1275

The answer is no, but I think the answer to this question will be helpful to you: How to print similar information as phpinfo() but for ASP.NET?

Upvotes: 0

Mehrdad Afshari
Mehrdad Afshari

Reputation: 421978

There's not a phpinfo style function in ASP.NET. I think you can enable tracing in Web.config and navigate to trace.axd to see similar stuff.

Upvotes: 0

Related Questions