.NET Framework Danish Sami UG Lead.NetFoundry

Slides:



Advertisements
Similar presentations
What is.Net Gary Devendorf. .Net Framework.Net framework works like the Domino Objects only much lower level and very complete It is part of the OS (or.
Advertisements

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 12 Introduction to ASP.NET.
Ahead of Time Dynamic Translation PreJit/NGEN by any other name George Bosworth Microsoft MRE04 March 21, 2004.
.NET Framework Overview
Using.NET Platform Note: Most of the material of these slides have been taken & extended from Nakov’s excellent overview for.NET framework, MSDN and wikipedia.
SSCLI (Shared Source Common Language Infrastructure) (code name: Rotor)
.NET Framework Overview Pingping Ma Nov 16 th, 2006.
.Net Overview Giuseppe Attardi Università di Pisa.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 1.1 of…
Overview of the.NET Framework. What is the.NET Framework A new computing platform designed to simplify application development A consistent object-oriented.
Deployment Your Salvation from DLL Hell. Objectives Overview Assemblies „XCopy“ Deployment Configuration Administration.
Module 1: Overview of the Microsoft.NET Framework.
Introducing the Common Language Runtime for.NET. The Common Language Runtime The Common Language Runtime (CLR) The Common Language Runtime (CLR) –Execution.
Assembly Where it all gets physical. Objectives Introduce concepts of assemblies Discuss elements of assemblies Show how to build assemblies Runtime aspects.
Introducing the Common Language Runtime. The Common Language Runtime The Common Language Runtime (CLR) The Common Language Runtime (CLR) –Execution engine.
Platforms and tools for Web Services and Mobile Applications Introduction to C# Bent Thomsen Aalborg University 3rd and 4th of June 2004.
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
A Free sample background from © 2001 By Default!Slide 1.NET Overview BY: Pinkesh Desai.
© 2004 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Programming the Web Using ASP.Net Chapter 2: The ASP.Net Template Dave.
1 Introduction to.NET Framework. 2.NETFramework Internet COM+ Orchestration Orchestration Windows.NET Enterprise ServersBuildingBlockServices Visual Studio.NET.
.NET Framework Introduction: Metadata
Introduction to .Net Framework
1 Namespaces and Assemblies © University of Linz, Institute for System Software, 2004 published under the Microsoft Curriculum License.
Architecture of.NET Framework .NET Framework ٭ Microsoft.NET (pronounced “dot net”) is a software component that runs on the Windows operating.
Session 1 - Introduction and Data Access Layer
CIS NET Applications1 Chapter 2 –.NET Component- Oriented Programming Essentials.
.NET Framework & C#.
Introduction to .NET Framework
Lecture Set 1 Part B: Understanding Visual Studio and.NET – Structure and Terminology 1/16/ :04 PM.
Understanding Code Compilation and Deployment Lesson 4.
Importing outside DLLs into.Net platform and using them By Anupama Atmakur.
ASSEMBLY. A SSEMBLY Assemblies are the fundamental units of applications in the.net framework An assembly can contain classes, structures, interfaces.
Introduction .NET Framework
ASSEMBLIES AND THE GAC CHAPTER 1, LESSONS 4-7 & LAB.
C# Overview and Features. Content I.History of C# II.Architecture III.How to install IV.Features V.Code Sample VI.Microsoft.NET Platform VII.Why use C#
Agenda Assemblies 101 Anatomy of an Assembly What is Metadata? Assembly Variations Signing Assemblies Global Assembly Cache.
Component-Based Software Engineering Introduction to.NET Paul Krause.
MSIL & CLI Kun-Yuan Shieh.
Basic Security: Java vs.NET Master Seminar Advanced Software Engineering Topics Prof. Jacques Pasquier-Rocha Software Engineering Group Department of Informatics.
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
1.NET FRAMEWORK CE-105 Spring 2007 Engr. Faisal ur Rehman.
AUC Technologies Projects Consulting, Development, Mentoring, and Training Company Application Foundation Presented By : Naveed Sattar Software Engineer.
.Net – The First Glance What Is.Net, Why Use.Net.
tom perkins1 XML Web Services -.NET FRAMEWORK – Part 1 CHAPTER 1.1 – 1.3.
Intro to dot Net Dr. John Abraham UTPA CSCI 3327.
PRIOR TO WEB SERVICES THE OTHER TECHNOLOGIES ARE:.
.NET Ying Chen Junwei Chen. What is Microsoft.NET. NET is a development platform Incorporated into.NET COM+ component services ASP web development framework.
Architecture of.Net Framework. Multiple Language Support  IL (MSIL or CIL) – Intermediate Language  It is low-level (machine) language, like Assembler,
C# and.NET. .NET Architecture  Compiling and running code that targets.NET  Advantages of Microsoft Intermediate Language (MSIL)  Value and Reference.
ASP.NET &.NET Environment. Overview Part of Microsoft’s.NET environment Used for Development of  Websites  Internet applications  Web Services & XML.
Common Language Runtime Introduction  The common language runtime is one of the most essential component of the.Net Framework.  It acts.
Module 4: Deployment and Versioning. Overview Introduction to Application Deployment Application Deployment Scenarios Related Topics and Tools.
July 22, 2001Introduction to.NET1 Introduction to.NET Framework Gholamali Semsarzadeh July 2001.
Text Introduction to.NET Framework. CONFIDENTIAL Agenda .NET Training – Purpose  What is.NET?  Why.NET?  Advantages  Architecture  Components: CLR,
Lecture Set 1 Part B: Understanding Visual Studio and.NET – Structure and Terminology 1/16/ :04 PM.
Assemblies. 2 Objectives Introduce assemblies –concept –creation –naming Discuss deployment –main.exe –dependent assemblies.
METADATA IN.NET Presented By Sukumar Manduva. INTRODUCTION  What is Metadata ? Metadata is a binary information which contains the complete description.
ClickOnce Deployment (One-click Deployment)
Introducing the Microsoft® .NET Framework
An Introduction to the Shared Source Common Language Infrastructure (SSCLI) Damien Watkins Copyright Watkins 2002.
.Net A brief introduction to
Microsoft .NET 3. Language Innovations Pan Wuming 2017.
CE-105 Spring 2007 Engr. Faisal ur Rehman
.NET and .NET Core 2. .NET Runtimes Pan Wuming 2017.
Module 1: Getting Started
Introduction to C# AKEEL AHMED.
Programming in C# CHAPTER 1
Module 10: Implementing Managed Code in the Database
ClickOnce Deployment (One-click Deployment)
Presentation transcript:

.NET Framework Danish Sami UG Lead.NetFoundry

Common Language Runtime Base Framework Classes Data and XML Classes C# VB.NET J# C++ … XML Web ServicesWebForms ASP.NET WindowsForms.NET Platform Overview

CLI (The.NET Specifications) Common Language Infrastructure A common type system The specification that determines how the runtime defines, uses, and manages types Execution Engine Architecture (runtime) A common Intermediate Language format A small set of base classes A Standard (ECMA-335)

10/11/2015BSG Technical Briefing 4 Microsoft’s.NET Implementation CLR – Common Language Runtime FCL – Framework Class Library

Overview of CLR Code management (loading and execution) Application memory isolation Verification of type safety Conversion of IL to native code Access to metadata (enhanced type information) Managing memory for managed objects Enforcement of code access security Exception handling, including cross-language exceptions Interoperation between managed code, COM objects, and pre-existing DLLs (unmanaged code and data) Automation of object layout Support for developer services (profiling, debugging, and so on)

Process Common Language Runtime App Domain 1 App Domain 2 App Domain 3 Assembly Overview of CLR Process

CLR verifies the type safety of an assembly when it is loaded, assuring that isolation between app domains is enforced Security Policy is enforced based on characteristics of the assembly (evidence)

SideBar - Some Key Terminology Type Value Types (Int32, String, DateTime, etc) Reference Types (Classes Arrays, Interfaces, Pointers, Enumerations) Managed Code Code that runs through the CLR Type Safe Code A ccesses types only in well-defined, allowable ways and doesn’t access memory directly

.NET Building Blocks Assemblies Modules

Source to Executable Source Code Compiler Module/Metadata/IL CLR Assembly/Metadata

Modules Source code is compiled to.dll (a library) or.exe (an executable)

Assemblies A bundle of One or more modules Zero or more Resource files A Manifest Can be strong-named (signed with a key)

Assemblies One or more files containing type definitions and resource files Managed Module IL and Metadata Resource File (.jpg,.html, etc.) Assembly Contains Manifest of files

Manifest File Establishes the assembly identity (in the form of a text name), version, culture, and digital signature (if the assembly is to be shared across applications). Defines what files (by name and file hash) make up the assembly implementation. Specifies the types and resources that make up the assembly, including which are exported from the assembly. Itemizes the compile-time dependencies on other assemblies. Specifies the set of permissions required for the assembly to run properly.

Module/Assembly Note that many times, an assembly you create may contain just one module This is the default in a VS.NET project

Hierarchy Assembly Modules Types Attributes Constructors Fields Methods Properties Events Type Members

.NET Architecture - Metadata Assembly Modules Manifest Types, Members, References

Reflection System.Reflection Namespace Uses Viewing Metadata Type Discovery Dynamic Binding

Strong-Named Assemblies An digitally signed assembly Strong integrity check Full Name: System.data, version= , Culture=neutral, PublicKeyToken=b77a5c561934e089

Steps to Sign an Assembly sn.exe –k SampleKey.snk Entry in AssemblyInfo.cs Build

Location of Assemblies The application's directory or subdirectories. (Easy XCopy deployment) Global Assembly Cache (Requires a setup package) Assemblies must be strong-named

Global Assembly Cache Shared assemblies Side by side versioning Control of versions using policy files Caching of downloadable assemblies Requires a “strong-named” assembly

Adding an Assembly to the Cache Build a strong-named assembly Drag and Drop into c:\windows\assembly Or Gacutil -i

Policy Files An xml file specifying assembly binding information Control version of assembly that is used by programs regardless of what version they were built with

Deploying a Policy File Create the xml file Use the assembly linker to include it in an assembly Install in into the GAC

Assembly Binding Behavior in config files Can be configured at different levels based on three XML files: Application configuration file. Publisher policy file. Machine configuration file.

Assemblies (the new Components) Think of and assembly as a component along the lines of a COM Component It is the unit of versioning, deployment, security, etc. You may want to break apps into multiple “components”

Garbage Collection The CLR takes care of disposing of unreferenced objects

.NET Configuration Files web.config app.exe.config machine.config

Config File Structure Two main parts Metadata that tells the framework how to parse the rest of the file  Includes and Individual Section Groups and Sections

machine.config machine.config affects all.NET apps C:\WINDOWS\Microsoft.NET\Framework\version\CONFIG\ web.config and app.exe.config files inherit the machine.config master settings Sections in our app config files can override the inherited settings.

All sections in the config files are specified in