Overview <ul><li>.Net Frame Work Overview </li></ul><ul><li>ASP .Net Demonstration </li></ul><ul><li>Deploying Asp .Net We...
.Net Framework Design Consideration <ul><li>To provide a consistent object-oriented programming environment </li></ul><ul>...
.Net Framework Components <ul><li>Common Language Runtime(CLR) </li></ul><ul><li>.Net Framework Class Library </li></ul>
.NET Framework in context
Two Step Compilation <ul><li>Language (c# or VB .Net) code to Microsoft Intermediate Language (MSIL) –VS 2008. </li></ul><...
CLR –What is provides ? <ul><li>cross-language integration. </li></ul><ul><li>cross-language exception handling. </li></ul...
Closer Look into CLR <ul><li>Managed Execution Process </li></ul><ul><ul><li>Choosing a compiler </li></ul></ul><ul><ul><l...
Choosing Compiler <ul><li>VS 2008  </li></ul><ul><li>3 rd  party compilers such as an Eiffel, Perl, or COBOL compiler. </l...
Compiling to MSIL <ul><li>MSIL   - It includes instructions for loading, storing, initializing, and calling methods on obj...
Compiling MSIL to Native code- CLR <ul><li>Just In Time (JIT) compilation  </li></ul><ul><li>Compilation happening at runt...
Automatic Memory Management  <ul><li>Allocating Memory: </li></ul><ul><ul><li>Managed heap (ref type). </li></ul></ul><ul>...
Common Type System <ul><li>Type classification: </li></ul><ul><ul><li>Value types </li></ul></ul><ul><ul><li>Reference typ...
Metadata and Self-Describing Components  <ul><li>Metadata describes every type and member defined in your code in a langua...
Assemblies <ul><li>Assemblies are a fundamental part of programming with the .NET Framework. </li></ul><ul><li>security bo...
Assembly Contents <ul><li>Single File Assembly: </li></ul><ul><li>Multi file Assembly: </li></ul>
Application Domain <ul><li>Provides Isolation between application in a single process. </li></ul>App domains Process
App Domain benefits <ul><li>Faults in one application cannot affect other applications  </li></ul><ul><li>Code running in ...
.NET Framework Class Library Overview  <ul><li>Represent base data types and exceptions. </li></ul><ul><li>Encapsulate dat...
Runtime Hosts  <ul><li>The runtime host loads the runtime into a process, creates the application domains within the proce...
Questions ? Questions ?
Thank You  Logu T
Upcoming SlideShare
Loading in...5
×

.Net Session Overview

1,035

Published on

.Net Frame work Fundamentals

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,035
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

.Net Session Overview

  1. 1. Overview <ul><li>.Net Frame Work Overview </li></ul><ul><li>ASP .Net Demonstration </li></ul><ul><li>Deploying Asp .Net Web App </li></ul>
  2. 2. .Net Framework Design Consideration <ul><li>To provide a consistent object-oriented programming environment </li></ul><ul><li>To provide a code-execution environment that minimizes software deployment and versioning conflicts </li></ul><ul><li>To make the developer experience consistent across widely varying types of applications, such as Windows-based applications and Web-based applications. </li></ul><ul><li>To build all communication on industry standards to ensure that code based on the .NET Framework can integrate with any other code. </li></ul>
  3. 3. .Net Framework Components <ul><li>Common Language Runtime(CLR) </li></ul><ul><li>.Net Framework Class Library </li></ul>
  4. 4. .NET Framework in context
  5. 5. Two Step Compilation <ul><li>Language (c# or VB .Net) code to Microsoft Intermediate Language (MSIL) –VS 2008. </li></ul><ul><li>MSIL to byte code - CLR </li></ul>
  6. 6. CLR –What is provides ? <ul><li>cross-language integration. </li></ul><ul><li>cross-language exception handling. </li></ul><ul><li>enhanced security. </li></ul><ul><li>versioning and deployment support. </li></ul><ul><li>simplified model for component interaction and debugging and profiling services. </li></ul>
  7. 7. Closer Look into CLR <ul><li>Managed Execution Process </li></ul><ul><ul><li>Choosing a compiler </li></ul></ul><ul><ul><li>Compile ur code to MSIL </li></ul></ul><ul><ul><li>MSIL to native code </li></ul></ul><ul><ul><li>Running code </li></ul></ul>
  8. 8. Choosing Compiler <ul><li>VS 2008 </li></ul><ul><li>3 rd party compilers such as an Eiffel, Perl, or COBOL compiler. </li></ul><ul><li>Common Language Specification </li></ul>
  9. 9. Compiling to MSIL <ul><li>MSIL - It includes instructions for loading, storing, initializing, and calling methods on objects, as well as instructions for arithmetic and logical operations, control flow, direct memory access, exception handling etc. </li></ul><ul><li>Metadata - It describes the types in your code, including the definition of each type, the signatures of each type's members, the members that your code references, and other data that the runtime uses at execution time. </li></ul><ul><li>The MSIL and metadata are contained in a portable executable (PE) file that is based on and extends the published Microsoft PE and common object file format (COFF) used historically for executable content </li></ul>
  10. 10. Compiling MSIL to Native code- CLR <ul><li>Just In Time (JIT) compilation </li></ul><ul><li>Compilation happening at runtime as needed. </li></ul><ul><li>Improves load time performance. </li></ul><ul><li>Code verification: </li></ul><ul><ul><li>A reference to a type is strictly compatible with the type being referenced. </li></ul></ul><ul><ul><li>Only appropriately defined operations are invoked on an object. </li></ul></ul><ul><ul><li>Identities are what they claim to be . </li></ul></ul>
  11. 11. Automatic Memory Management <ul><li>Allocating Memory: </li></ul><ul><ul><li>Managed heap (ref type). </li></ul></ul><ul><li>Releasing Memory: </li></ul><ul><ul><li>Active roots </li></ul></ul><ul><ul><li>Unreachable objects are removed based effective algorithm </li></ul></ul><ul><li>Releasing Memory for Unmanaged Resources: </li></ul><ul><ul><li>Dispose() </li></ul></ul>
  12. 12. Common Type System <ul><li>Type classification: </li></ul><ul><ul><li>Value types </li></ul></ul><ul><ul><li>Reference types. </li></ul></ul>
  13. 13. Metadata and Self-Describing Components <ul><li>Metadata describes every type and member defined in your code in a language-neutral manner. Metadata stores the following information: </li></ul><ul><li>Description of the assembly. </li></ul><ul><ul><li>Identity (name, version, culture, public key). </li></ul></ul><ul><ul><li>The types that are exported. </li></ul></ul><ul><ul><li>Other assemblies that this assembly depends on. </li></ul></ul><ul><ul><li>Security permissions needed to run. </li></ul></ul><ul><li>Description of types. </li></ul><ul><ul><li>Name, visibility, base class, and interfaces implemented. </li></ul></ul><ul><ul><li>Members (methods, fields, properties, events, nested types). </li></ul></ul><ul><li>Attributes. </li></ul><ul><ul><li>Additional descriptive elements that modify types and members. </li></ul></ul>
  14. 14. Assemblies <ul><li>Assemblies are a fundamental part of programming with the .NET Framework. </li></ul><ul><li>security boundary </li></ul><ul><li>version boundary </li></ul><ul><li>deployment boundary </li></ul><ul><li>Side by side execution (multiple versions of a component to be run simultaneously). </li></ul><ul><li>Solves versioning issues </li></ul><ul><li>An End to DLL conflicts </li></ul><ul><li>Provide infrastructure for versioning rule </li></ul>
  15. 15. Assembly Contents <ul><li>Single File Assembly: </li></ul><ul><li>Multi file Assembly: </li></ul>
  16. 16. Application Domain <ul><li>Provides Isolation between application in a single process. </li></ul>App domains Process
  17. 17. App Domain benefits <ul><li>Faults in one application cannot affect other applications </li></ul><ul><li>Code running in one application cannot directly access code or resources from another application. The common language runtime enforces this isolation by preventing direct calls between objects in different application domains </li></ul><ul><li>Improves performance by reducing cross-process calls or switching between processes </li></ul>
  18. 18. .NET Framework Class Library Overview <ul><li>Represent base data types and exceptions. </li></ul><ul><li>Encapsulate data structures. </li></ul><ul><li>Perform I/O. </li></ul><ul><li>Access information about loaded types. </li></ul><ul><li>Invoke .NET Framework security checks. </li></ul><ul><li>Provide data access, rich client-side GUI, and server-controlled, client-side GUI. </li></ul><ul><li>Object (System. Object) </li></ul><ul><li>Collections </li></ul><ul><li>Generics </li></ul><ul><li>Reflection </li></ul>
  19. 19. Runtime Hosts <ul><li>The runtime host loads the runtime into a process, creates the application domains within the process, and loads user code into the application domains. </li></ul><ul><li>Ex: Asp .Net - Loads the runtime into the process that is to handle the Web request. ASP.NET also creates an application domain for each Web application that will run on a Web server. </li></ul>
  20. 20. Questions ? Questions ?
  21. 21. Thank You Logu T

×