.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

I need guidance on a program that displays system information

Posted By:      Posted Date: September 06, 2010    Points: 0   Category :.NET Framework
I have been asked by my university's IT division to write a program that displays specific information about the computer that the program is running on, such as the OS version, IP address, domain name, chipset, any device drivers that are installed, and any software that is installed. I'm allowed to use whatever language I want, but since I only know Java and VB.Net, I would like to use one of them. I've been doing Google searches for two weeks trying to find any information on a built-in class that would do this, in either language, but thus far, I've been unable to find anything that fits what I'm looking for. What I'm hoping for from this is for someone to tell me about a class that displays this kind of information, or failing that, how I would go about building my own. Be as general as you feel you need to be; this is a class assignment, and I'm hoping to learn something from this. Thank you for your time.

View Complete Post

More Related Resource Links

MMC: Designing TView, a System Information Viewer MMC Snap-in


Windows 2000 provides remote management tools running in the Microsoft Management Console (MMC), but if you're running Windows NT 4.0 you can create your own remote management tools by writing an MMC snap-in. This article walks through the development of a distributed process management utility, TView, which is similar to Process Viewer or Task Manager. The tool consists of an MMC snap-in, a COM+ component, and a kernel-mode driver. The DCOM interface, TView's access to system processes and information, and debugging of TView are discussed in detail.

Tom Boldt

MSDN Magazine December 2000

CheckedListBox displays System.Data.DataRowView on one machine

As I was writing this post I solved my problem. Now I will share the solution for anyone who may stumble across this legacy cr*p. I inherited an old VB.NET application written in the old Visual Studio .Net against the 1.0 framework. Recently we had to rebuild a couple of machines and redeploy the app. We have CheckedListBox controls bound using the DataSource property and suddenly all we could see was System.Data.DataRowView in the list on these machines. All the forums out there tell you that binding the items with the DataSource property is not supported by Microsoft and offer code fixes, which we obviously do not want to do. I installed the .Net Framework 1.0 redistributable and fixed it right up. Which is a little strange because one of the machines it still works on only has 1.1. But there you have it  I actually tested this on another machine by installing 1.1 first, which did not fix the problem, but installing 1.0 did. And another interesting thought. The executable and its class library dependency reside in a network share. After installing the 1.0 framework I had to run a Caspol.exe command to grant privs to the share or the executable could not access the library. The app functioned fine without the Caspol.exe command (except the ListBox of course) prior to installing the 1.0 framework. Strange stuff...Hope this helps someone someday.

Placing ..... configuration information in a config file other than app.config

Hi, I'm sorry if this question has been asked/answered before on this forum. I have searched both here and on the web in general, but to no avail as yet... I am running VS2010 and .Net 4, so in theory have all the latest versions of everything at my disposal. I have an executable a.exe. This downcalls into a dll b.dll. b.dll wants to send an MSMQ message using WCF. For cleanness (a.exe is a generic service and knows nothing about WCF) I want to define the client endpoint in b.dll.config. However I am finding that WCF is insisting that the information is held in a.exe.config. The exact problem is that when I create my proxy (i.e. the class which derives from ClientBase<T>), I get the message Could not find endpoint element with name 'XXX' and contract 'YYY' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this name could be found in the client element. From what I have seen I have just described an extremely common problem that people have had with WCF over the years. My questions is basically to find out, given that I have WCF 4 at my disposal, whether there is now a standard approach to this scenario? Things I have tried so far: The obvious one...putting all my config info in a.exe.config. When I do this, everything works file, so I

System.DllNotFoundException when two program load same DLL

An exception occurs  in my application,when C# application try load one C++ DLL.  it shows : System.DllNotFoundException: Unable to load DLL (Exception from HRESULT: 0x8007045A) . It's very strange , it's only occurs in such step: 1. A_user  starts one tomcat server,  in one webservice(A_web) of this server use java code "Runtime.getRuntime().exec(a.exe) " to run A program in A_PATH(all need c++ dll in this path)?Call the A_web service, so A program runs and loads all dll. 2?B_user starts B program in B_PATH(all need c++ dll in this path).when it try load dll, it will throw DllNotFoundException. Both A and B are C# program in one PC. A and B can run without error when start in normal way(form cmd). And exchange steps above, run B first and A second, NO exception occurs. It seems that java server adds something on DLL loading. Without such server, all is OK. But what? I use procmon try to find some reason, it shows two difference between two result(right B/wrong B):the wrong one will try twice on get *dll.manifest and *dll.config and failed(the right one try each once and failed);the wrong one don't has ReadFile operation on dll but right one has and succeed. Can anyone give some reason about this?  

ProfilePropertyValue control displays information for other profiles while it is blank for your own


I have a custom page deployed in 2007 SP2 June 2010 CU which uses the following control:

<SPSWC:ProfilePropertyValue ID="ManagerValue" PropertyName="Manager" ApplyFormatting

Extract huge amount of information from production system using ssis


Environment - Production System - SQL 2008(2000 compatibility)
                      BI System  - SQL 2008 R2

We are currently extracting data from a production system on a nightly basis.
One of the tables contains massive amount of information. We extract a 90 day window and the method we are using is extract to raw file and then we import the raw file to a staging database.

The tables contains +- 360 columns which is all used in the BI Warehouse.

The raw file amounts to about 9 Gigs of data.

This extraction process takes from 2:30 to 4:00 hours.  This is almost halve the evening and the ETL process is starting to take to long.

We recently upgraded the hardware so lack of hardware power is not the issue.

Is there another way of moving the data accross which will be more efficient and take less time?

Any assistance would be appreciated.


Why does my program crash when I use comboBoxCities.Visibility = System.Windows.Visibility.Hidden;



I have a combobox and I have an event for it called comboBoxCountry_SelectionChanged when I add the following code to event the program crashes when its trying to start "comboBoxCities.Visibility = System.Windows.Visibility.Hidden;"

I have pasted the c# and xaml code below


C# code


  private void comboBoxCountry_SelectionChanged(object sender, SelectionChangedEventArgs e)
   comboBoxCities.Visibility = System.Windows.Visibility.Hidden;
   labelCity.Visibility = System.Windows.Visibility.Hidden;

   if (comboBoxCountry.SelectedItem.ToString().Contains("United States"))
    comboBoxCities.Visibility = System.Windows.Visibility.Visible;
    labelCity.Visibility = System.Windows.Visibility.Visible;

   else if (comboBoxCountry.SelectedItem.ToString().Contains("Canada"))
    comboBoxCities.Visibility = System.Windows.Visibility.Visible;
    labelCity.Visibility = System.Windows.Visibility.Visible;

XAML code

System Development Life Cycle

The Systems Development Life Cycle (SDLC) is a conceptual model used in project management that describes the stages involved in an information system development project from an initial feasibility study through maintenance of the completed application. Various SDLC methodologies have been developed to guide the processes involved including the waterfall model (the original SDLC method), rapid application development (RAD), joint application development (JAD), the fountain model and the spiral model. Mostly, several models are combined into some sort of hybrid methodology

The Agile System Development Life Cycle (SDLC)

The goal of this article is to describe the agile system development life cycle (SDLC), putting it in context from what you may have heard about within the agile community and more importantly within the context of your overall IT efforts.

How to get more information about the exceptions that can happen in SharePoint 2010 projects?

In case there is an exception anywhere in the SharePoint 2010 project (most common place an exception would happen is during deployment of your SharePoint project, custom deployment configuration or custom deployment steps), there's a registry key EnableDiagnostics available for you to use.

Performance Tests: Precise Run Time Measurements with System.Diagnostics.Stopwatch

Everybody who does performance optimization stumbles sooner or later over the Stopwatch class in the System.Diagnostics namespace. And everybody has noticed that the measurements of the same function on the same computer can differ 25% -30% in run time. This article shows how single threaded test programs must be designed to get an accuracy of 0.1% - 0.2% out of the Stopwatch class. With this accuracy, algorithms can be tested and compared.

Program for Format Conversion of An Image

.NET provides extensive support for image conversion. Any image can be processed from one format to another. Most common formats to which .NET have support for are .BMP, .EMF, .GIF, .ICO, .JPG, .PNG, .TIF and .WMF.



hello i have the following problem

i have upload my content to hosting server but i get the following error

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SecurityException: Request for the permission of typ

Problem upgrading to MVC3 - System.Web.Routing



I'm trying to upgrade to .NET 4 and MVC 3.

When trying to compile my project, I get the error:

Error 1 The type or namespace name 'Routing' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) C:\Users\spencer\Desktop\weblauncher\Common\MVCConfig.cs 4 18 Common

The type or namespace name 'Routing' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)

I do have the System.Web.Routing in my references for the project.

BUT - when I try to view System.Web.Routing in the OBJECT BROWSER, nothing is inside!  The System.Web.Routing namespace is not in there - the entire thing is empty!  Could it that the dll is corrupted?  I tried to reinstall the .NET 4 and MVC 3 stuff, but its still empty!

The dll is coming from here:

C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Web.Routing.dll

and the runti

Looking for guidance: wanting to work with AJAX architecture



I'm starting a small website that will be backed by a database, and will allow a small number of users to authenticate and select an entry in the database, and then view (and optionally update) a corresponding entry (think master-detail).

I have some flexibility in how I'll do this, but I'd really like to incorperate some newer AJAX style coding, eliminating some page postbacks. I think this is a great opportunity to learn the concepts well.

I'll probably go with an ASP.NET 4.0 site. From what I've seen there are MANY ways to go about this:

-WCF Data Services to expose the data, and consume in ASP.NET

-Page methods to expose the data, separate method to update the data

-I'd rather avoid the UpdatePanel because I'm really looking for a full hands-on approach, with learning client side scripting being an objective as well.

Beyond that, it seems that one can use jQuery to build clientside templates, but also one can use the ASP.NET AJAX template engine (in ASP.NET 4.0 I believe).

A concern I have: users should only be able to work with the data exposed via these endpoints if they are logged into the website. Hopefully I can somehow reuse the ASP.NET forms authentication cookie for this purpose. 

Well, I hope I've posted enough to a

System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPerm


Good Day all,

Having an issue with an outside user accessing my IIS7 box. I do not have this problem when running the website from my host machine. I found this post: Http://forums.asp.net/t/1371394.aspx. I assure you that this is not a solution because I am not storing any of my files on a network share. 

What do you think my approach should be. 

I already have read rights to IIS user to my BIN folder. 

Thanks for the help. 

Information about sessions


Some questions about sessions:

I know sessions information is stored in the form of cookie and you can use qurystring for that if you set cookieless session in web.config. But I don't exactly understand the scope of a session.

What I believe is when you login to a website, a session cookie is created and the scope of that session is within that page only. If you close the browser that session gets killed and when you open the browser again and go to that site then a new session is created ie a new session is created on every request. Is this correct?

But I have seen in many websites, even if you close the browser and open it again the session is not killed, how does that happen?

Can anyone clear out and explain the scope/lifetime of sessions


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend