starlocke / aspnetsysinfo Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/aspnetsysinfo
Automatically exported from code.google.com/p/aspnetsysinfo
Feature suggestion.
It would be useful to include information on a web host's trust level
(typically I'd used to this confirm that I'm on medium trust/shared-
hosting).
Example code snippet:
AspNetHostingPermissionLevel GetCurrentTrustLevel()
{
foreach (AspNetHostingPermissionLevel trustLevel in
new AspNetHostingPermissionLevel[] {
AspNetHostingPermissionLevel.Unrestricted,
AspNetHostingPermissionLevel.High,
AspNetHostingPermissionLevel.Medium,
AspNetHostingPermissionLevel.Low,
AspNetHostingPermissionLevel.Minimal
})
{
try
{
new AspNetHostingPermission(trustLevel).Demand();
}
catch (System.Security.SecurityException)
{
continue;
}
return trustLevel;
}
return AspNetHostingPermissionLevel.None;
}
( borrowed from here:
http://blogs.msdn.com/dmitryr/archive/2007/01/23/finding-out-the-current-
trust-level-in-asp-net.aspx )
Original issue reported on code.google.com by leekelleher
on 10 May 2010 at 8:12
Great script, one fix for you:
Memory information on a 64bit system is incorrect.
Redefine MemoryInfo as:
[StructLayout(LayoutKind.Sequential)]
public struct MemoryInfo
{
public uint dwLength;
public uint dwMemoryLoad;
public IntPtr dwTotalPhys;
public IntPtr dwAvailPhys;
public IntPtr dwTotalPageFile;
public IntPtr dwAvailPageFile;
public IntPtr dwTotalVirtual;
public IntPtr dwAvailVirtual;
}
And cast them to ulong's before formatting.
Thanks.
Original issue reported on code.google.com by smremde
on 2 Sep 2011 at 8:50
What steps will reproduce the problem?
1. Run/display the 'info.aspx' page.
2. Scroll down to the 'Processor Information' section.
3. Below 'Page Size', see the exception.
What is the expected output? What do you see instead?
The 'GetSystemProcessorInfo_WMI' method should display processor/management
information, but throws/displays the following:
System.NullReferenceException: Object reference not set to an instance of an
object. at
ASP.umbraco_aspnetsysinfo_info_aspx.GetSystemProcessorInfo_WMI(DataTable table)
What version of the product are you using? On what operating system?
Using rev.23 on Windows 7, IIS 7.5, ASP.NET 3.5
Original issue reported on code.google.com by leekelleher
on 10 May 2010 at 7:59
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.