windows live dev platformdownload.microsoft.com/documents/uk/msdn/events/iis7.pdf · 2018-12-05 ·...
TRANSCRIPT
![Page 2: Windows Live Dev Platformdownload.microsoft.com/documents/uk/msdn/events/iis7.pdf · 2018-12-05 · IIS7 Diagnostics –Failed Requests IIS7 allows you to log trace information just](https://reader034.vdocuments.us/reader034/viewer/2022043021/5f3d3a0c9fc1a00e6657c511/html5/thumbnails/2.jpg)
Agenda
IIS architecture
The request pipeline
Configuration
Building managed modules
Diagnostics features
Delegated administration
![Page 3: Windows Live Dev Platformdownload.microsoft.com/documents/uk/msdn/events/iis7.pdf · 2018-12-05 · IIS7 Diagnostics –Failed Requests IIS7 allows you to log trace information just](https://reader034.vdocuments.us/reader034/viewer/2022043021/5f3d3a0c9fc1a00e6657c511/html5/thumbnails/3.jpg)
IIS 7.0 Introduction
Client version shipped with Windows Vista
Limited throughput
Server version will ship with WS2008
Currently available in RC form
More features than client
![Page 5: Windows Live Dev Platformdownload.microsoft.com/documents/uk/msdn/events/iis7.pdf · 2018-12-05 · IIS7 Diagnostics –Failed Requests IIS7 allows you to log trace information just](https://reader034.vdocuments.us/reader034/viewer/2022043021/5f3d3a0c9fc1a00e6657c511/html5/thumbnails/5.jpg)
IIS 7.0 Architecture
![Page 6: Windows Live Dev Platformdownload.microsoft.com/documents/uk/msdn/events/iis7.pdf · 2018-12-05 · IIS7 Diagnostics –Failed Requests IIS7 allows you to log trace information just](https://reader034.vdocuments.us/reader034/viewer/2022043021/5f3d3a0c9fc1a00e6657c511/html5/thumbnails/6.jpg)
Windows Process Activation Service
Manages configurationWhat used to be the metabase
Responsible for starting worker processes...w3wp.exe
...and routing incoming requests to the appropriate worker process
Also hosts the new listener adapter interfaceYou can build your own listeners for WAS
![Page 7: Windows Live Dev Platformdownload.microsoft.com/documents/uk/msdn/events/iis7.pdf · 2018-12-05 · IIS7 Diagnostics –Failed Requests IIS7 allows you to log trace information just](https://reader034.vdocuments.us/reader034/viewer/2022043021/5f3d3a0c9fc1a00e6657c511/html5/thumbnails/7.jpg)
IIS 6.0 Request Pipeline
![Page 8: Windows Live Dev Platformdownload.microsoft.com/documents/uk/msdn/events/iis7.pdf · 2018-12-05 · IIS7 Diagnostics –Failed Requests IIS7 allows you to log trace information just](https://reader034.vdocuments.us/reader034/viewer/2022043021/5f3d3a0c9fc1a00e6657c511/html5/thumbnails/8.jpg)
IIS 6.0 Request Pipeline
IIS pipeline extensible using ISAPINative code
Can apply to all requests
ASP.NET pipeline extensible using IHttpModuleManaged code
Can only apply to requests routed via ASP.NET
Certain pipeline elements are “always there”IIS authentication
Logging
![Page 9: Windows Live Dev Platformdownload.microsoft.com/documents/uk/msdn/events/iis7.pdf · 2018-12-05 · IIS7 Diagnostics –Failed Requests IIS7 allows you to log trace information just](https://reader034.vdocuments.us/reader034/viewer/2022043021/5f3d3a0c9fc1a00e6657c511/html5/thumbnails/9.jpg)
IIS 7.0 Request Pipeline
![Page 10: Windows Live Dev Platformdownload.microsoft.com/documents/uk/msdn/events/iis7.pdf · 2018-12-05 · IIS7 Diagnostics –Failed Requests IIS7 allows you to log trace information just](https://reader034.vdocuments.us/reader034/viewer/2022043021/5f3d3a0c9fc1a00e6657c511/html5/thumbnails/10.jpg)
IIS 7.0 Request Pipeline
Linear sequence of modules
Any module can be enabled/disabledIncluding “built-in” ones
Modules can be managed or native code
Any type of module applies to any request
![Page 11: Windows Live Dev Platformdownload.microsoft.com/documents/uk/msdn/events/iis7.pdf · 2018-12-05 · IIS7 Diagnostics –Failed Requests IIS7 allows you to log trace information just](https://reader034.vdocuments.us/reader034/viewer/2022043021/5f3d3a0c9fc1a00e6657c511/html5/thumbnails/11.jpg)
IIS7 Modules
![Page 12: Windows Live Dev Platformdownload.microsoft.com/documents/uk/msdn/events/iis7.pdf · 2018-12-05 · IIS7 Diagnostics –Failed Requests IIS7 allows you to log trace information just](https://reader034.vdocuments.us/reader034/viewer/2022043021/5f3d3a0c9fc1a00e6657c511/html5/thumbnails/12.jpg)
IIS 6.0 Configuration
IIS 6.0 (and earlier) use the metabase
Stores all configuration information
Originally in binary form, then in XML
Hard to allow management of separate apps by different groups of people
![Page 13: Windows Live Dev Platformdownload.microsoft.com/documents/uk/msdn/events/iis7.pdf · 2018-12-05 · IIS7 Diagnostics –Failed Requests IIS7 allows you to log trace information just](https://reader034.vdocuments.us/reader034/viewer/2022043021/5f3d3a0c9fc1a00e6657c511/html5/thumbnails/13.jpg)
IIS 7.0 Configuration
machine.config
“root” web.config
web.config
web.config
web.config
applicationHost.config
![Page 14: Windows Live Dev Platformdownload.microsoft.com/documents/uk/msdn/events/iis7.pdf · 2018-12-05 · IIS7 Diagnostics –Failed Requests IIS7 allows you to log trace information just](https://reader034.vdocuments.us/reader034/viewer/2022043021/5f3d3a0c9fc1a00e6657c511/html5/thumbnails/14.jpg)
IIS7 Configuration
![Page 15: Windows Live Dev Platformdownload.microsoft.com/documents/uk/msdn/events/iis7.pdf · 2018-12-05 · IIS7 Diagnostics –Failed Requests IIS7 allows you to log trace information just](https://reader034.vdocuments.us/reader034/viewer/2022043021/5f3d3a0c9fc1a00e6657c511/html5/thumbnails/15.jpg)
Building Native Modules
Export a RegisterModule function from DLL
Define one or more other functions
To process request or response
Inside RegisterModule...
Hook up your other functions(s) at specific points in the pipeline
E.g. Begin, AuthN, AuthZ, ExecuteHandler, End
![Page 16: Windows Live Dev Platformdownload.microsoft.com/documents/uk/msdn/events/iis7.pdf · 2018-12-05 · IIS7 Diagnostics –Failed Requests IIS7 allows you to log trace information just](https://reader034.vdocuments.us/reader034/viewer/2022043021/5f3d3a0c9fc1a00e6657c511/html5/thumbnails/16.jpg)
Building Managed Modules
Implement IHttpModule
Implement Init function
Attach event handlers for specific points in the pipeline
E.g. Begin, AuthN, AuthZ, ExecuteHandler, End
Same as existing ASP.NET HttpModules
![Page 17: Windows Live Dev Platformdownload.microsoft.com/documents/uk/msdn/events/iis7.pdf · 2018-12-05 · IIS7 Diagnostics –Failed Requests IIS7 allows you to log trace information just](https://reader034.vdocuments.us/reader034/viewer/2022043021/5f3d3a0c9fc1a00e6657c511/html5/thumbnails/17.jpg)
IIS7 Managed Module
![Page 18: Windows Live Dev Platformdownload.microsoft.com/documents/uk/msdn/events/iis7.pdf · 2018-12-05 · IIS7 Diagnostics –Failed Requests IIS7 allows you to log trace information just](https://reader034.vdocuments.us/reader034/viewer/2022043021/5f3d3a0c9fc1a00e6657c511/html5/thumbnails/18.jpg)
IIS7 Diagnostics - RSCA
Runtime Status and Control API
Shows currently executing: -
Application Pools
Requests
Exposed via
IIS admin tool
Programmatically via WMI and Managed OM
![Page 19: Windows Live Dev Platformdownload.microsoft.com/documents/uk/msdn/events/iis7.pdf · 2018-12-05 · IIS7 Diagnostics –Failed Requests IIS7 allows you to log trace information just](https://reader034.vdocuments.us/reader034/viewer/2022043021/5f3d3a0c9fc1a00e6657c511/html5/thumbnails/19.jpg)
IIS7 Current Requests
![Page 20: Windows Live Dev Platformdownload.microsoft.com/documents/uk/msdn/events/iis7.pdf · 2018-12-05 · IIS7 Diagnostics –Failed Requests IIS7 allows you to log trace information just](https://reader034.vdocuments.us/reader034/viewer/2022043021/5f3d3a0c9fc1a00e6657c511/html5/thumbnails/20.jpg)
IIS7 Diagnostics – Failed Requests
IIS7 allows you to log trace information just for requests that fail
For some definition of failure
Buffers all trace output
Only flushes to disk if the request fails
Log output is XML, with a stylesheet
Breaks down processing by module
Includes timing details for each module
![Page 21: Windows Live Dev Platformdownload.microsoft.com/documents/uk/msdn/events/iis7.pdf · 2018-12-05 · IIS7 Diagnostics –Failed Requests IIS7 allows you to log trace information just](https://reader034.vdocuments.us/reader034/viewer/2022043021/5f3d3a0c9fc1a00e6657c511/html5/thumbnails/21.jpg)
IIS7 – Failed Request Tracing
Enable FREB at the Web Site level
Configure FREB rules at the application level
Each rule: -
Specifies the type of web content it applies to
Can specify a specific failure code
Can specify a duration in seconds
Can specify a trace event severity
![Page 22: Windows Live Dev Platformdownload.microsoft.com/documents/uk/msdn/events/iis7.pdf · 2018-12-05 · IIS7 Diagnostics –Failed Requests IIS7 allows you to log trace information just](https://reader034.vdocuments.us/reader034/viewer/2022043021/5f3d3a0c9fc1a00e6657c511/html5/thumbnails/22.jpg)
IIS7 Failed Request Tracing
![Page 23: Windows Live Dev Platformdownload.microsoft.com/documents/uk/msdn/events/iis7.pdf · 2018-12-05 · IIS7 Diagnostics –Failed Requests IIS7 allows you to log trace information just](https://reader034.vdocuments.us/reader034/viewer/2022043021/5f3d3a0c9fc1a00e6657c511/html5/thumbnails/23.jpg)
IIS7 Delegated Administration
Can connect MMC to remote web server
Uses HTTPS, hopefully few firewall implications
Can delegate some or all admin activities
To any user: admin/non-admin/non-windows
Each activity can be: -
Not delegated, read-only, read/write
User’s view is trimmed according to permissions
Admin controls who sees what
![Page 24: Windows Live Dev Platformdownload.microsoft.com/documents/uk/msdn/events/iis7.pdf · 2018-12-05 · IIS7 Diagnostics –Failed Requests IIS7 allows you to log trace information just](https://reader034.vdocuments.us/reader034/viewer/2022043021/5f3d3a0c9fc1a00e6657c511/html5/thumbnails/24.jpg)
IIS7 Delegated Administration
![Page 25: Windows Live Dev Platformdownload.microsoft.com/documents/uk/msdn/events/iis7.pdf · 2018-12-05 · IIS7 Diagnostics –Failed Requests IIS7 allows you to log trace information just](https://reader034.vdocuments.us/reader034/viewer/2022043021/5f3d3a0c9fc1a00e6657c511/html5/thumbnails/25.jpg)
Summary
New architecture
Worker process management separate from HTTP
Streamlined request pipeline
Potential to reduce attack surface
Simpler configuration
Better diagnostics
Delegated administration
For further information: http://www.iis.net
![Page 27: Windows Live Dev Platformdownload.microsoft.com/documents/uk/msdn/events/iis7.pdf · 2018-12-05 · IIS7 Diagnostics –Failed Requests IIS7 allows you to log trace information just](https://reader034.vdocuments.us/reader034/viewer/2022043021/5f3d3a0c9fc1a00e6657c511/html5/thumbnails/27.jpg)
© 2007 Microsoft Ltd. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market
conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation.
MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.