Archive

Posts Tagged ‘Framework’

Understanding the .Net Framework


The main feature of .Net platform is its runtime system which is known as Common Language Runtime (CLR).CLR is the engine that handles the parsing and execution of all .NET application instruction. The CLR is the foundation upon which the entire .NET platform is built.

Code Management and Execution- Code management within the CLR covers most of the basic activities of loading and executing .NET programs. The key task of code management is converting the Intermediate Language (IL) files created by the command line compilers into native code for the target machine. Command line compilers do not create actual executable code; they create a form of compressed code called IL. This IL then converted to native code to run.

There are some important advantages of using IL. This IL makes code operating system independent. You can compile your code once and then ship it to many different platforms or devices for execution. That’s because the actual creation of the executable code is handled by the CLR on the host device itself.

Step-1: Create the source code. You can use any text editor to crate .NET source code files.

Step-2 & 3: A command line compiler accepts the source code as input and produces a file (.DLL or .EXE) that contains parsed code and additional metadata that describes the compiled component.

net1

Step-4 & 5: The parsed code and metadata is delivered to the Just-in-time (JIT) compiler that converts the parsed code into executable code for that operating system and processor. For ASP.NET applications, this last step occurs the first time a user request a page from the Web application.

Note:- It is important that the JIT-ed file is stored on disk for future use. Repeated requests to a component will be compiled to native code only the first time. All subsequent requests are routed directly to the native compiled file. This means that all ASP.NET applications executed at “native-code speed” every time. It also means that this conversion to native code happens only once in the lifetime of the component. The only times this changes is when the source code is changed; at that point, the entire cycle mentioned above starts again.

Categories: .Net, Framework Tags: ,

.NET Framework: Introduction


Microsoft’s .NET platform is an entirely new way to build applications including web applications. ASP.Net was built on top of the .NET platform and takes full advantage of the power and flexibility of the .NET  framework.

Advantage of .NET platform

There are a number of powerful features and services within the .NET platform; however there are four in particular that have a great impact on ASP.NET applications. Those are-

  1. OS-Neutral Environment- One of the most important aspects of the .NET platform is that it is essentially operating system neutral. The design of the .NET run time library makes it possible to build both desktop and web solution without ever making direct calls to the underlying operating system at all. This means that ASP.NET developers need to know almost nothing of the windows operating system in order to built and deploy their solutions.
  2. Device Independent Microsoft has designed the .Net platform’s output to work successfully on a number of different devices.  For example, the ASP.NET run times contain a set of user interface controls (Web Form controls) that automatically query the calling browser or device or device and then emit the proper markup language that will work for the calling device. This means that web application developers no longer are required to write complicated branching code that will send one set of files to Netscape browsers and another set of files to Microsoft Browsers. Just one markup page is needed to support multiple browsers.This device independence takes a big leap forward in the ability to create a single source code library that can run successfully on almost any device.
  3. Wide Language Support- Microsoft has designed the .NET run times to support multiple source code languages. This allows programmers to choose the language they are most comfortable with when creating their solutions. The .NET run times support three Microsoft languages that can be used to build ASP.NET applications: C#, Visual Basic .NET and Jscript .NET. C# is the language Microsoft stuff used to build much of the .NET class libraries themselves. It is an extension of the C++ language that has many similarities with java.There are three more languages that are work for .NET has already been released in some beta form. Those are COBOL .NET, PERL .NET and Eiffel for .NET. There are more than 15 .NET languages announced.
  4. Internet-Based Component Services- Microsoft has built into .NET the ability to treat almost any internet location as a component. The key technology used to accomplish this is XML based SOAP (Simple Object Access Protocol) Services. SOAP offers a standardized message format for passing information between Web servers over the Internet. Microsoft has used this message system to help create a standardized way to send component and type library information between two machines. This is, in effect, a kind of remote procedure calling (RPC) system that works over standard HTTP connections. By utilizing the open standards of SOAP, Microsoft has built into the .NET run time a very simple way to expose components for use across the Internet.

Categories: .Net, Framework Tags: ,