Introduction to ASP.NET

Introduction to ASP.NET

Configuring .NET Web Applications MIS 424 Professor Sandvig Today 1. Why Web Applications? 2. IIS Role in handing a request IIS Applications

3. .NET Request Handling Global.asax 4. Configuration files Machine.config Web.Config

Why Applications? Dark ages (pre-2003) Server crashes not unusual Single failure bring down whole system Worse yet: Memory leaks

Cause IIS hang Stop serving pages Required manual intervention (reboot) Why Applications? Today Applications still crash Applications are compartmentalized OS handles gracefully

System rarely affected OS monitors application health Recycles unhealthy processes Result: system stable & reliable IIS Applications Folders may be configured as Applications

IIS configuration interface IIS Applications Many configuration options IIS Applications Each application is assigned to an Application Pool IIS Application Pools Each application pool has a unique Windows

process Specify error handling, timeouts, etc. for each Request Handling https://yorktown.cbe.wwu.edu/students/174/csandvig/music/index Source: https://codeteddy.com/2013/08/19/mvc3-interview-questions-and-answers/ .NET Application When URL points to IIS Application

IIS passes request to .NET .NET checks configuration files: Located in root folder global.asax Application event handler web.config Application configuration settings Global.asax

Handles application & session events 15+ events Application_start Application_error Session_start Located in root folder of application Triggered each page request

Global.asax Configures MVC application: public class WebApiApplication : System.Web.HttpApplication { protected void Application_Start() { AreaRegistration.RegisterAllAreas(); GlobalConfiguration.Configure(WebApiConfig.Register); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); } }

web.config Located in root folder XML format Many settings:

Connection strings Authentication Debugging .NET version Exception handling Timeouts Others .Net Application Example Example:

Create new application on server Summary Application Objectives: Reliability Convenient Configuration Flexibility Security

IIS Handles requests Passes to .NET MVC Configuration Global.asax Web.config

Recently Viewed Presentations

  • Puzzle A - ilovemathsgames

    Puzzle A - ilovemathsgames

    Title: Puzzle A Author: the riddler Last modified by: Emily Hughes Created Date: 12/16/2012 11:28:20 PM Document presentation format: On-screen Show (4:3)
  • Synthetic Chemical Experiment Chem is try ! Grignard

    Synthetic Chemical Experiment Chem is try ! Grignard

    Grignard Reaction 实验 1-苄基环戊醇的合成 实 验 原 理: 反应式: 化学教学实验中心 Chem is try ! 实 验 装 置 图: 化学教学实验中心 Chem is try ! 实 验 流 程: 化学教学实验中心 Chem is try ! Mg粉 无水乙醚 引发反应 微沸20min 反应 ...
  • Planning for the Future  Board approved o o

    Planning for the Future Board approved o o

    3-5 Year Strategy Map. FY14 Operational Objectives. ... sense of the community and collaboration that facilitates individual growth and helps advance the corporate real estate profession. Core Purpose, Values & Principles ... (HR, IT, Finance, Procurement, Legal) to foster integrated...
  • Working With Words! Dr. Janet Kehe and Dr.

    Working With Words! Dr. Janet Kehe and Dr.

    Wordle and Iowa Core. Example: Grade 4/5 Writing Standard "Use precise language and domain-specific vocabulary to inform about or explain the topic." Example: Grade 9-12 Speaking/Listening Standard "Make strategic use of digital media in presentations to enhance understanding of findings,...
  • Living Things - School District of the Chathams

    Living Things - School District of the Chathams

    Homeostasis All living things can maintain a balanced internal environment. The 7 Characteristics of Life 6. Organization All living things have cellular organization. They are made up of one or more cells. The 7 Characteristics of Life 7. Growth and...
  • EXPERIENCE MATTERS Six Decades of Experience in Emerging

    EXPERIENCE MATTERS Six Decades of Experience in Emerging

    IFC works with private sector clients, government, and civil society to bring the benefit of global expertise to the country through its advisory services and investment projects. IFC's priorities in Serbia include agribusiness, climate change, and improvements in the investment...
  • Maps "He's off the map!" -Stan (Mark Ruffalo)

    Maps "He's off the map!" -Stan (Mark Ruffalo)

    Recall, in the ArrayList example we did not count the number of occurrences of each word CS 314 Maps * Keys and Values Dictionary Analogy: The key in a dictionary is a word: foo The value in a dictionary is...
  • Comparative Genomics & Annotation The Foundation of Comparative

    Comparative Genomics & Annotation The Foundation of Comparative

    Phylogenetic Footprinting (homologous detection) Blanchette and Tompa (2003) "FootPrinter: a program designed for phylogenetic footprinting" NAR 31.13.3840- Term originated in 1988 in Tagle et al. Blanchette et al.: For unaligned sequences related by phylogenetic tree, find all segments of ...