Git Product home page Git Product logo

aspnetsysinfo's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

aspnetsysinfo's Issues

AspNetHostingPermissionLevel (Trust level)

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

Incorrect memory information

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

GetSystemProcessorInfo_WMI throws exception (Windows 7)

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.