Alexey Polovinkin Post graduate student, CMC department.

Slides:



Advertisements
Similar presentations
Building Localized Applications with Microsoft.NET Framework and Visual Studio.NET Achim Ruopp International Program Manager Microsoft Corp.
Advertisements

1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
Session 13 Active Server Pages (ASP) Matakuliah: M0114/Web Based Programming Tahun: 2005 Versi: 5.
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
Anatomy of an ASP.NET Page. Slide 2 My Version of the Big Picture (1) ASP Worker (Engine) Your application Runs Server Other applications User 1User 2.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview Introduce Visual Studio 2013 Create a first ASP.NET application.
1 Configuring Web services (Week 15, Monday 4/17/2006) © Abdou Illia, Spring 2006.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 1.1 of…
IIS v7.0 Martin Parry Developer & Platform Group Microsoft Limited
Internet Information Server (IIS)
IT533 Lectures Configuring, Deploying, Tracing and Error Handling.
Saad Ladki Program Manager Microsoft Corporation WUX403.
Delivering Excellence in Software Engineering ® EPAM Systems. All rights reserved. ASP.NET Authentication.
Hands-On Microsoft Windows Server 2008 Chapter 1 Introduction to Windows Server 2008.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
February 24 th -25 th 2004 Daragh Byrne – EPCC Additional.NET Concepts.
© 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.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Deployment of web Site. Preparing the web site for deployment you now have two versions of web site 1 -one running in the production environment 2-one.

An Introduction to ASP.NET Ed Dunhill blogs.msdn.com/edunhill SLIDE7.
Overview of Previous Lesson(s) Over View  Server controls are small building blocks of the graphical user interface, which includes  Text boxes  Buttons.
Understanding Events and Exceptions Lesson 3. Objective Domain Matrix Skills/ConceptsMTA Exam Objectives Understand events and event handling Understand.
ASP.NET  ASP.NET is a web development platform, which provides a programming model, a comprehensive software infrastructure and various services required.
Advanced Web Forms with Databases Programming Right from the Start with Visual Basic.NET 1/e 13.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Module 14: WCF Send Adapters. Overview Lesson 1: Introduction to WCF Send Adapters Lesson 2: Consuming a Web Service Lesson 3: Consuming Services from.
1 Apache. 2 Module - Apache ♦ Overview This module focuses on configuring and customizing Apache web server. Apache is a commonly used Hypertext Transfer.
DEV402 Extending the ASP.NET Runtime Jurgen Postelmans Microsoft Regional Director BeLux U2U.
ASP.NET application. Roadmap ASP.NET file types Bin directory Application updates Simple application from start to finish using a virtual directory Behind.
1 Data Bound Controls II Chapter Objectives You will be able to Use a Data Source control to get data from a SQL database and make it available.
.NET Framework Danish Sami UG Lead.NetFoundry
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
Dr. Mustafa Cem Kasapbaşı Security in ASP.NET. Determining Security Requirements Restricted File Types.
1 CS 3870/CS 5870 Note04 Session Variables and Post Back.
Efficient Deployment & Management of ASP.NET 2.0 Applications on IIS 6.0 Alexis Eller Program Manager Internet Information Services Microsoft Corporation.
What’s new in Kentico CMS 5.0 Michal Neuwirth Product Manager Kentico Software.
1 Chapter Overview Performing Configuration Tasks Setting Up Additional Features Performing Maintenance Tasks.
ASP.NET OPTIMIZATION. Why Optimize? $$$ Whether you build applications for customers or not, enhanced applications save money.
STATE MANAGEMENT.  Web Applications are based on stateless HTTP protocol which does not retain any information about user requests  The concept of state.
Slide 1 ASP Authentication There are basically three authentication modes Windows Passport Forms There are others through WCF You choose an authentication.
Reset and Recycle IIS Reset Application Pool Management Error Codes New HTTP Sub-status codes Custom/Detailed Errors Tracing in IIS7 and.
VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview VITALE, CATURANO & COMPANY LTD SharePoint Developer Series – Web Part.
PAGE DIRECTIVES. Page Directives  They are instructions, inserted at the top of an ASP.NET page, to control the behavior of ASP.NET pages.  So it is.
This is the main tracing and diagnostics presentation. Very important that this be practical and useful information. IT Pro audience is very.
ASP.NET in Definition: 1.ASP.NET is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites,
Virtual techdays INDIA │ 9-11 February 2011 Caching Enhancement in ASP.NET 4.0 Abhijit Jana │ Consultant, Microsoft
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
ASP.NET P AGE O BJECTS.  Each ASP.NET page inherits the PAGE object  The PAGE supplies 3 built in objects:  REQUEST: All information passed to the.
Configuring and Deploying Web Applications Lesson 7.
Overview of Previous Lesson(s) Over View  ASP is a technology that enables scripts in web pages to be executed by an Internet server.  ASP.NET is a.
Delivering Excellence in Software Engineering ® EPAM Systems. All rights reserved. Configuration.
Plug-In Architecture Pattern. Problem The functionality of a system needs to be extended after the software is shipped The set of possible post-shipment.
What was new in VS Studio 2008 A bird eye view from the height of ft By: Shahzad Sarwar Software Architect Comsoft computer consultants.
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
Sergey Sidorov PhD student, computer software chair Computer Science department.
Introduction to ASP.NET, Second Edition2 Chapter Objectives.
Computing with C# and the .NET Framework
ASP.NET Forms.
Efficient Deployment & Management of ASP. NET 2
Session Variables and Post Back
Security mechanisms and vulnerabilities in .NET
Module 1: Getting Started
Chapter 23 – ASP.NET Outline 23.1 Introduction NET Overview
Application Infrastructure
Anatomy of an ASP.NET Page
Configuring Internet-related services
ASP.NET Module Subtitle.
IIS v7.0 Martin Parry Developer & Platform Group Microsoft Limited
Presentation transcript:

Alexey Polovinkin Post graduate student, CMC department

 Anatomy of ASP.NET application  The global.asax application file  ASP.NET configuration .NET Components  Extending HTTP pipeline

 All the web pages in a single web application: ◦ share the same in-memory resources (global application data, per-user session data, cached data) ◦ share the same core configuration settings  Virtual directory is the basic grouping structure that delimits ASP.NET applications

 web pages (.aspx files)  web services (.asmx files)  WCF services (.svc files)  core-behind files  a configuration file (web.config)  global.asax  other components

 ASP.NET uses lazy initialization technique for creating application domains.  Application can restart himself in new application domain: ◦ in response to error conditions; ◦ depending on settings in the computer-wide machine.config file, when certain thresholds are reached (length of application domain runtime, the number of queued requests, the amount of memory used, etc.) (see chapter 18) ◦ when application is changed (modifying web.config, replacing existing web page or DLL assembly)  ASP.NET starts new application domain to handle all future requests and keeps the existing application domain alive long enough to finish handling requests.

 There is an opportunity to update ASP.NET application without needing to restart web server and without worrying about existing clients.  ASP.NET uses shadow copy technique  ASP.NET ability to detect changing original files relies on ability of Windows system to track directories and files and send immediate change notification.  You can use assemblies from GAC and put your own assemblies into GAC.

DirectoryDescription BinAll the precompiled.NET assemblies (usually DLLs) that the ASP.NET web application uses App_CodeSource code files that are dynamically compiled for application App_Global Resources Global resources that are accessible to every page in the web application App_Local Resources Resources that are accessible for dedicated pages only App_Web References References to web services that web application uses (WSDL files and discovery documents) App_DataData storage, including SQL Server 2005 Express database files and XML files App_BrowsersBrowser definitions stored in XML files (see Chapter 27) App_ThemesThe themes used by the web application (see Chapter 16)

 contains event handlers to react global events  defines the methods for application class (derives from HttpApplication)  doesn’t contain any HTML or ASP.NET tags

 Application_Start()  Session_Start()  Application_Error()  Session_End()  Application_End()  Application_Disposed()

 %WINDIR%\Microsoft.NET\Framework\v \Config  defines supported configuration file sections;  configures ASP.NET worker process;  registers providers for advanced features (profile, membership, role-based security)

 configure how ASP.NET worker process recycles application;  configure Windows account it executes under;  Ignored by IIS >= 6.0

 Allow to set the server-specific key used for encrypted data and creating digital signatures ◦ machine specific, application specific keys ◦ single key for all applications on the computer ◦ definition of the keys explicitly ◦ definition of the application-specific keys explicitly in the web.config file

 validationKey value can be from 40 to 128 characters long  decriptionKey value can be either 16(DES) or 48(3DES) characters long  safety rules: ◦ use maximum length key available ◦ use.NET Framework cryptography classes (System.Security.Cryptography namespace)

 - entire content of ASP.NET configuration ◦ - ASP.NET configuration settings ◦ - store custom application settings ◦ - store connection strings to databases.

 Allows to specify more than one group of settings in the same configuration file

 section can be used to lock specific settings so they can’t be overridden

you can use as few or as many configuration sections as you want web.config file is case-sensetive

 allows to configure the behavior of ASP.NET application to response to various HTTP errors  Supported modes: ◦ On – custom errors are enabled; ◦ Off – custom errors are disabled; ◦ RemoteOnly – custom errors are shown only to remote clients but full detailed errors are displyed to local clients  Custom error settings defined in configuration file come into effect only if ASP.NET is handling the request

 allows to define database connection strings that will be used in application

 allows adding custom settings to the application 

 System.Configuration namespace  ConfigurationSettings class  AppSettings property

 System.Web.Configuration namespace  WebConfigurationManager class

 OpenWebConfiguration() method reflects the cumulative configuration for the current application  OpenWebConfiguration() method returns Configuration object that contains all configuration information

 element can be used to store custom information that application uses, but ◦ it doesn’t provide a way to store structured information ◦ it’s limited to single strings  to extend a configuration file: ◦ determine information to store in configuration file and its structure ◦ for each element create C# class that encapsulates information ◦ register new element in configuration file (use element)  Example

 ASP.NET supports two encryption options: ◦ RSA ◦ DPAPI (data protection API)  Programmatic encryption ◦ ProtectSection() – encrypt data in section; ◦ UnprotectSection() – switch off encryption;  Command-line encryption (with regiis_asp) ◦ -pe specifies configuration section to encrypt ◦ -app specifies web application’s virtual path ◦ -prov specifies provider name

 Two ways to create a component: ◦ Create a new.cs file in the App_Code subdirectory ◦ Create a new class library project in Visual Studio

 HTTP handlers are defined in section of configuration file (nested in the element)  - register new handler  - unregister existing handler

 participate in processing of a request by handling application events  a request can flow trough multiple HTTP modules but it always ends with single HTTP handler

 HTTP modules are defined in section of configuration file (nested in the element)  - register new module  - unregister existing module

 To create a custom HTTP handler you need to make a class that implements IHttpHandler interface

 verb = “*” (use for both HTTP POST and HTTP get requests)  path – indicates the file extension that will invoke HTTP handler  type – identifies HTTP handler class

 To create a custom HTTP handler you need to make a class that implements IHttpHandler interface