Tony Patton offers a brief overview of the main aspects of the .NET Framework and discusses where to get and then install the necessary tools.
As Microsoft works on version 3.0 of its .NET Framework, more developers are turning their attention to .NET development. Thankfully, getting started with .NET is easy with the tools freely available from Microsoft.
Based on reader feedback I decided to go back to basics this week and show you how to get started in .NET. I begin with a quick overview of the main aspects of the .NET Framework and continue with getting and installing the necessary tools.
What is it?
The .NET Framework sits at the core of Microsoft's .NET platform. It provides a platform for quickly building full-featured applications. The two main parts of the framework are the Common Language Runtime (CLR) and the Framework Class Libraries (FCL).
The CLR is the execution environment for .NET-based applications. It manages code execution, which includes security, thread management, memory management and allocation, and so forth. You may write code in one of the many available .NET languages, including the out-of-box options VB.NET, C#, and J#. These languages compile their code into Intermediate Language (IL). The CLR takes the IL and makes it go.
The FCL is a set of reusable object-oriented classes that provide basic .NET functionality. These classes comprise the coding options available to the .NET developer, which include ADO.NET, ASP.NET, Web services, and so forth. These classes are available within namespaces, which are logical collections of objects. Namespaces allow you to group objects together, and there are a variety of classes available with .NET. You can think of namespaces as a library of objects or functionality.
Now I'll turn my attention to getting your development environment up and running so you can begin churning out code.
The necessary pieces
One of the great features of .NET is the fact that it is freely available from Microsoft. A quick visit to the Microsoft .NET Developer Center provides everything you need. (The most recent version of the Framework is 2.0 with version 3.0 in the works.) The home page includes links for your platform. It only supports Windows-based environments. If you are interested in open source .NET development within a UNIX-based environment, check out the Mono project.
Once you have downloaded the installation file for your platform, you can run it to set up the .NET Framework on your system. Once it is installed, you will have the following base directory on your system (assuming the default installation directories are used):
C:\Windows\Microsoft.NET\Framework\<version number>
The version number corresponds to the build of the Framework installed with these possible values:
- v1.0.3705: Version 1.0
- v1.1.4322: Version 1.1
- v2.0.50727: Version 2.0
These directories will contain dll's used in .NET development. Each .NET namespace is contained within its own dll file. Here are a few examples:
- System.Web: Contains classes for ASP.NET Web development.
- System.XML: Contains classes for working with XML.
- System: The base library of classes for working with .NET code.
In addition to the dll's, there are a number of command-line tools that allow you to build .NET applications. This includes a compiler, debugger, and more. The following list provides a sampling of these tools:
- csc.exe: C# compiler
- vbc.exe: VB.NET compiler
- jsc.exe: J# compiler
- regasm.exe: .NET Assembly registration tool
- regsvcs.exe: .NET Services installation tool
Each of these tools support a help switch (/?) that may be passed to the program to view the online help information about its usage.
.NET code may be created using your favorite text editor (like Windows' Notepad) or a specialized development tool like Microsoft Visual Studio or the freely available SharpDevelop. With your code created, you can easily compile them with the command-line tools listed above or utilize the features of an IDE.
ASP.NET development
In addition to the command-line tools for basic .NET development, the tools for development of Web applications with ASP.NET are included as well. You can include your .NET code directly in the ASP.NET Web page or utilise the codebehind construct available in .NET. Whatever approach you choose, you must have a Web server available to test or run your applications.
A development Web server is included with Visual Studio, but you can also utilize IIS running on your development machine. (The installation and setup of IIS is beyond the scope of this article, but it is not a standard part of Windows, so you'll have to add it if it is not selected during setup.) With IIS installed and running, you must properly set it up to handle ASP.NET Web pages. The .NET Framework includes a tool in its base directory (c:\windows\framework\<version>) to easily configure it: aspnet_regiis.exe. This file installs ASP.NET support on the computer's IIS instance. Once it is run, IIS will properly handle ASP.NET files.
Team development
Team development has been a major focus of Microsoft with its latest batch of .NET development tools. The Visual Studio IDE now offers a Team System version, which provides features for development teams. In addition, you can always utilise Microsoft's Visual SourceSafe tool or a third-party product. The focus is on source control management and communication between team members.
Plenty of options
The .NET Framework from Microsoft has enjoyed overwhelming success since its introduction with version 1.0. This article shows you how you can get up and running with .NET development with a few mouse clicks and downloads from Microsoft. Once you set up the .NET Framework on your system, you are now faced with a plethora of development options and choices.
Tony Patton began his professional career as an application developer earning Java, VB, Lotus, and XML certifications to bolster his knowledge.




1
Steve Leung - 06/10/06
When clicked on the link to Microsoft .Net Developer Centre, I got this error page:
Server Error in '/URLRedirection' Application.
Fatal error opening the database connection: Login failed for user 'UrlRedirection'. Reason: The password of the account has expired.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Exception: Fatal error opening the database connection: Login failed for user 'UrlRedirection'. Reason: The password of the account has expired.
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:
[Exception: Fatal error opening the database connection: Login failed for user 'UrlRedirection'. Reason: The password of the account has expired.]
Microsoft.Msdn.UrlRedirection.DataAccessLayer.DataAccess.GetDatabaseConnection(String conn) +112
Microsoft.Msdn.UrlRedirection.DataAccessLayer.DataAccess.RedirectionLogSet(String sourceDomain, String sourcePath, String sourceFileName, String contentId) +36
Microsoft.Msdn.UrlRedirection._Default.GetUrlRedirectionData(String rawUrl) +1897
Microsoft.Msdn.UrlRedirection._Default.Page_Load(Object sender, EventArgs e) +44
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750
Version Information: Microsoft .NET Framework Version:1.1.4322.2331; ASP.NET Version:1.1.4322.2300
» Report offensive content
2
Richard Moore - 06/10/06
Or go to http://www.turboexplorer.com to download your free copy of Turbo C# or Turbo Delphi .NET
» Report offensive content
3
anil nautiyal - 19/10/06
i found this a very good to me as i am beginner to .net
» Report offensive content
4
goutham - 19/10/06
in ADO.net,when i connecting Sql server & when i debugging i am getting the following message in Microsoft.NET Framework
"An unhandled exception has occured in your application,If you click Continue,the application will ignore this error and attempt to continue.If you click Quit,the application will be shut down immediately.
Login failed for user 'sa'.
» Report offensive content
5
yash - 20/10/06
hello
» Report offensive content
6
Vindu Puri - 03/11/06
this is very useful and informative info for a beginner
» Report offensive content
7
Vindu Puri - 03/11/06
Can I get some resources on design patterns, I m in search of good resources related to Design Patterns. Any ones help will be appreciable. www.glitterminds.com
» Report offensive content
8
Vivek Puri - 18/03/07
Which desing pattern u r looking for proxy,singleton,facade,gateway ,factor to name afw
» Report offensive content
9
BABU - 06/04/07
Thanks much
» Report offensive content
10
Cloud Strife - 04/01/08
when i try using a application that uses framework it keeps saying
Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.
An error occurred creating the form. See Exception.InnerException for details
The error is Could not load file or assembly
'AxInterop.ShockwaveFlashObjects, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of it's dependencies. The system cannot find the file specified.
» Report offensive content