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

  • PERSONAL VALUES PROFESSIONAL VALUES A RESOLVEABLE CONFLICT? Schools

    PERSONAL VALUES PROFESSIONAL VALUES A RESOLVEABLE CONFLICT? Schools

    Such decisions are usually very important to the service user, sometimes they can change the course of a service users life. They may be based on a sound assessment and comply with the GSCC's CoP but the subjective element that...
  • Different type of hierarchical clustering What is the

    Different type of hierarchical clustering What is the

    http://statweb.stanford.edu/~tibs/ElemStatLearn/ The Elements of Statistical Learning (2nd edition) Hastie, Tibshirani and Friedman
  • Syringe Exchange Programs in NC - NCHRC

    Syringe Exchange Programs in NC - NCHRC

    Syringe Exchange Legalized. On July 11, 2016 North Carolina enacted G.S. 90-113.27 legalizing syringe exchange programs (also called needle exchange). Under . G.S. 90-113.27, no employee, volunteer or . participant. of a syringe exchange can be charged or prosecuted for...
  • Bioinformatics 3 V9 - Dynamic Regulation: Petri & Boolean ...

    Bioinformatics 3 V9 - Dynamic Regulation: Petri & Boolean ...

    Quorum sensing of Vibrio fischeri. V. fischeri. has a microbial . symbiotic relationship . with the squid . Euprymna scolopes. The bacterium exists in . small amounts . in the ocean (102 cells/ml) and in
  • PowerPoint 演示文稿 - Middlebury

    PowerPoint 演示文稿 - Middlebury

    A Plane-Based Approach to Mondrian Stereo Matching. Abstract. Stereo vision is the problem of estimating a 3D depth map of a scene from two images taken from adjacent viewpoints. It has many applications, including self-driving cars, robotics, and 3D reconstruction.
  • Rapid Commerce Quickly shift your retail business into

    Rapid Commerce Quickly shift your retail business into

    Rapid Commerce is the first fully cloud-native, microservices and "headless" architecture-based digital commerce platform accelerator. It combines the power of Azure and microservices with a proven, Agile-based approach to align and establish priorities, translate strategy into a plan, and ...
  • Bell Ringer: What do the letters T,O,M represent

    Bell Ringer: What do the letters T,O,M represent

    Ingredients Yield Temperature Time Equipment Step-by-step directions Nutrition Information Recipe Formats Action Narrative Standard Customary Units Volume- teaspoon, tablespoon, cup, fluid ounce, pint, quart, gallon Weight- ounce, pound Temperature- degrees Fahrenheit Length- inches Metric Units ...
  • Tom Stone

    Tom Stone

    With Rue My Heart Is Laden. With rue my heart is laden. For golden friends I had, For many a rose-lipt maiden. And many a lightfoot lad. By brooks too broad for leaping