www.iis.net This is the main tracing and diagnostics presentation. Very important that this be practical and useful information. IT Pro audience is very.

Slides:



Advertisements
Similar presentations
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Advertisements

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Windows 8 (1) (2) (3) Windows 8 (1) (2) (3)
Feature: Identity Management - Login © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Feature: Purchase Requisitions - Requester © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
demo Default WANGPSLookup Default WANGPS.
IIS v7.0 Martin Parry Developer & Platform Group Microsoft Limited
Eben de Wit Developer Advisor Microsoft
Co- location Mass Market Managed Hosting ISV Hosting.
Windows 7 Training. Windows ® 7 Compatibility Installer Detection.
Windows 7 Training Microsoft Confidential. Windows ® 7 Compatibility Version Checking.
Multitenant Model Request/Response General Model.
Feature: Purchase Order Prepayments II © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
var site="s15gizmodo" var site="s15gizmodo"
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Announcing Demo Announcing.
 Vijay Sen Senior Program Manager Microsoft Corporation ES14.
Feature: OLE Notes Migration Utility
Saad Ladki Program Manager Microsoft Corporation WUX403.
IIS, Tools And Extensibility Madhur Joshi Development Lead Phone:
Feature: Web Client Keyboard Shortcuts © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
vdir2 Web. config Echo. svc A A B B C C vdir2 vdir1.
Session 1.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
 Rico Mariani Architect Microsoft Corporation.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Assign an Item to Multiple Sites © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Windows 8 (1) (2) (3) Windows 8 (1) (2) (3)
WinHEC /22/2017 © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
IIS7: A brief tour Diagnostics drilldown Best practices and patterns.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Connect with life Connect with life
NEXT: Overview – Sharing skills & code.
demo Receive Inventory Export Parse and Normalize.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Document Attachment –Replace OLE Notes © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Suggested Item Enhancements – Sales Script and Additional Information © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Reset and Recycle IIS Reset Application Pool Management Error Codes New HTTP Sub-status codes Custom/Detailed Errors Tracing in IIS7 and.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
demo Instance AInstance B Read “7” Write “8”

customer.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
demo Demo.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
Feature: Suggested Item Enhancements – Analysis and Assignment © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and.
projekt202 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
The CLR CoreCLRCoreCLR © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
Anil Revuru. Simple.NET Library Encoding Library with Multiple Contexts Protects from XSS attacks.
IIS Manager Details Delegated Administration Configuration System.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Mohammed Abdul Muqeet Khan Microsoft MVP – IIS | HCL

Why Invest in FTP? Shipping Out-of-Band What FTP 7 Provides What FTP 7 Doesn't Provide Demonstrations Other FTP 7 Improvements.
Module 4: Troubleshooting Web Servers. Overview Use IIS 7.0 troubleshooting features to gather troubleshooting information Use the Runtime Control and.
Возможности Excel 2010, о которых следует знать
Office Mac /30/2018 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Title of Presentation 12/2/2018 3:48 PM
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
Шитманов Дархан Қаражанұлы Тарих пәнінің
Title of Presentation 5/24/2019 1:26 PM
日本初公開!? Vista の新機能を実演 とっちゃん わんくま同盟 7/23/2019 9:09 AM
Presentation transcript:

This is the main tracing and diagnostics presentation. Very important that this be practical and useful information. IT Pro audience is very familiar with IIS 6 troubleshooting. Tracing will be very welcome if presented in a practical way NEXT:

Reset and Recycle IIS Reset Application Pool Management Error Codes New HTTP Sub-status codes Custom/Detailed Errors Tracing in IIS7 and Longhorn ETW tracing IIS7 Tracing Common Problems and solutions

IISReset is overused in general Will stop and start Windows Process Activation Service (WAS) IISAdmin service Rarely needed for web site changes Application pools are auto recycled on pool config change IISReset /reboot is deprecated

Easier to manage pools with IIS Manger Manage long lists of pools Displays Identity, Framework Version, Type Worker Process information avail in UI Recycle AppPools using: Command Line: appcmd recycle appool “DefaultAppPool” IIS Manager: AppPools  Recycle Microsoft.web.adminsitration API See currently running requests: appcmd list requests UI: Worker Process  View Current Requests Unload App Domain now possible

RFP occurs when pool fails X times in Y minutes (configurable) Prevents continuous attempts to start a very ill process Process will eventually recycle after Y minutes IIS 7 allows a configurable action to occur when RFP kicks in See Application Pool, Advanced Settings

#1 of 5

#2 of 5

New sub-status codes added Provides more detail to help quickly identify problems Recorded in IIS logs Combined with detailed errors to give actionable error messages Examples:  : Denied by Request Filtering (URLScan replacement)  : ASP.NET integrated pipeline

New Verbose errors provides much more information Provided by CustomErrors IIS7 module Suggests Causes and Solutions – often suggests corrective action or lines of inquiry Details include configuration section in question, module in use, page, etc. Verbose errors only delivered to localhost by default

#3 of 5

Errors can be customized similar to IIS6 Options are: File: Show a specific file ExecuteRequest : url to a page or program in the same application pool. (url-rewrite, does not involve round trip) New to IIS 7 Redirect : Redirect to a new url (like a URL redirection, with client roundtrip) Replace=All (setting is not in UI) In some cases, a crash or error may not “bubble up” to IIS7 custom error module. This switch ensures IIS7 errors are used

Delegation for custom error configuration is off by default Prevents web.config rule to display files on the server when error occurs If you own ALL responses (Replace=All), must handle all scenarios (eg. SOAP 500) In Classic mode, ASP.NET errors are overridden by IIS7 custom errors Error handling differences in classic vs integrated mode

Built into the OS Present on Windows Server 2003 Significantly extended in Longhorn ETW providers report into a binary log No UI for configuration Logs can be very large and must be parsed by utility TIP: Logparser is your friend Lack of ability to setup “triggers”

#4 of 5

Enable no-repro instrumentation for “failed requests” Turn tracing on, but only keep the events for “failed requests” Allow for custom failure definitions per URL Time taken Status/substatus codes Enable per-URL trace configuration Allow me to define what to trace per URL Example: only trace aspnet events for “*.aspx” Persist failure log files beyond process lifetime Common scenarios: Request takes too long/hangs -> very common today Request error -> request completes, but with error status code Authentication/Authorization problems Server 500 errors

ETW (IIS 6)Trace Data is useful, but difficult to use. Requires utilities to extract and present events from file. IIS 7 provides preformatted XSLT for easy analysis of capture IIS 7 Failed Request Events Logs

Identifying cause of a slow response Determining why a page isn’t cached #5 of 5

Most are not in UI, but can be set in config Log directory maxLogFiles (in UI) maxLogFileSizeKB Run a command when a rule fires: customActionsEnabled customActionExe customActionParams customActionTriggerLimit

Create your own errors pages Replace IIS7 error handling module Applications can write events to the IIS 7 tracing system Trigger specific actions when rapid fail protection occurs Custom actions can be configure on specific errors ASP.net pages and WCF can report trace events into trace logs

ASP.net application doesn’t’ work in integrated mode: Some settings in web.config may need to be repositioned. Appcmd Migrate will do this automatically Use Classic mode IIS 6 installation scripts don’t work Install IIS Management Compatibility Layer Where do I set Read/Execute permissions for a site? Moved to handler permissions Why doesn’t ASP.net run? Is it installed? Most questions of this sort are caused by the reduce footprint installation

IIS Manager improves management and better visibility of runtime environment Error messages are actionable Command line interfaces and APIs for state query, control, and diagnostics Built in tracing helps identify many problems without specialized debuggers Extensibility allows new and customized options

© 2007 Microsoft Corporation. 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.