Tech Support Websites

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Saturday, 18 June 2011

Notes from Tech-Ed session "Internet Information Services (IIS) 7.5 for Developers"

Posted on 02:33 by Unknown
Steve Evans' presentation "Internet Information Services (IIS) 7.5 for Developers" at Tech-Ed, NA 2011, had some interesting IIS tips & tricks. I transcribed some of them from the more than hour-long video recording on Channel9 -

- Developers have Swiss cheese knowledge – they know a lot but there are holes in what they are familiar with.

Certificates
- Certificate Authority (CA) creates a cert for a specific site & date range, the OS trusts it.
- Client connects to server, pulls down cert & check for 3 things -
* Certificate creator trusted?
* Host header matches?
* Date is in range?
- Configuring SSL certificates - A wildcard certificate can be used for multiple sites related to each other
- You can drop a non-CA issued cert into the Trusted Root Certification Authority to simulate a real scenario while experimenting with a feature

PowerShell
- strong support in IIS 7.5
- PowerShell treats IIS as a drive

DefaultDocument setting
- DefaultDocument setting within IIS Manager lets you specify the default file to return when a client does not request a specific file.
- Interesting IIS notification when I tried the DefaultDocument setting on an Application - "The file ‘default.aspx’ exists in the current directory. It is recommended that you move this file to the top of the list to improve performance"

Feature Delegation
- Feature Delegation module is used to configure the default delegation state for features at lower levels in IIS Manager
- web.config is created automatically when certain settings are added in IIS.
- we have the option in IIS to change which settings are stored in the web.config versus the IIS metabase. Its through Feature Delegation.
- if Feature Delegation is set to Read Only, the setting is stored in the IIS metabase

Application Pool- is where the code runs
- Managed pipeline mode setting for Application Pool has 2 options –
* Integrated – ASP.NET is part of the pipeline
* Classic
- Be in Integrated mode whenever you can
- 10 year old codebase in ASP migrated to IIS 7.5 ran fine in Integrated mode
- Application Pool > Advanced Settings | General > “Enable 32-bit application”-false will address more than 4 gigs of memory
- Application Pool > Advanced Settings > Process Model | Idle timeout – set to 0 on Production server, default is 20 minutes
- Every 29 hours (Recycling | Regular time interval - 1740 minutes), the app pool will recycle (inproc sessions will be lost) no matter what
-Worker Processes module in IIS Manager lists all App pools
- Host rogue or crash-prone apps in a separate app pool so that it’s in a sandbox

Failed Request Tracing Rules
- configure tracing for failed requests. A request trace is logged either when an error status code is generated or when the time taken for the request exceeds a specified duration. If both conditions have been fulfilled, the first condition that is met willl generate the request trace.

Log Parser Lizard
- free GUI tool for MS Log Parser

MS Web Deploy /One Click deploy - available through command-line (MSDeploy.exe) & GUI
- Example: msdeploy -verb:sync -source:webServer -dest:webServer,computerName=demoiis -whatif - informs what would change on a sync but not actually change it.

Security
- After the Code Red security issue in IIS5, from IIS6 onwards components of IIS are disabled by default.
- URL Scan is built into IIS 7.

Web Platform Installer - app store for IIS

URL Rewrite - popular extension for IIS
- allows us to write rules to change the request coming in & going out on they fly
- comes with a bunch of pre-canned rules
- The sample rule UserFriendlyURL makes URLs SEO-friendly
- provides rewriting capabilities based on rules for the requested URL address & the content of an HTTP response. So if user types http://site2.com/ IIS can make it look as http://www.site2.com/
- You can rename URL Rewrite configured rules in web.config to have memorable names rather than using the automated default names.

IIS Express
- true IIS except it does not run as a service, it runs as a app under your user context.
- "Use IIS Express" appears in context menu for project in VS & you can switch from using Cassini to IIS Express. URL Rewrite, FRT, Log files (for use with Log Parser) available with IIS Express

Also see: Free videos from major Microsoft Developer events are archived on Channel9
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in IIS | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Windows 8 keyboard shortcuts
    Win + X   - context menu to access common features like Control Panel, Task Manager, File Explorer, Programs & Features, Run, Search etc...
  • Dashboard-like info with Browser tabs, Windows 7 Taskbar tabs
    Browser tabs & Windows 7 Taskbar tabs are turning self-aware.  This is how my browser looked the other day: I had the summary of all tha...
  • The State Of HTML5 Video
    Key points from the  The State Of HTML5 Video  report by LongTailVideo (last updated on April 19, 2012): 75% of the desktop & mobile bro...
  • Archive tweets & favorites with Google Reader
    There are numerous ways to archive tweets but rather than use yet another tool, I prefer using Google Reader to preserve the tweets I mark ...
  • TWIL - Week #3
    This Week I Learned: New Azure VM Image Templates include SQL Server, BizTalk Server, and SharePoint Server (2013?) images . This can be han...
  • What is the difference between Browser Mode & Document Mode in IE
    If you're a web developer and your job actively involves building web pages that work the same in all browsers including the last three ...
  • My 30-day personal project - watch 100 hours of Pluralsight videos
    Inspired by Matt Cutts' 30-day challenges , I plan to watch 100 hours of Pluralsight online videos to get up-to-date with current ...
  • Azure in Pictures - overview of Windows Azure Features, Services and Common Uses
    Download the Windows Azure Poster in PDF format (1.1MB)
  • Indian comparison shopping sites
    Did you know, India has 120 million Internet users & the Indian e-commerce market is worth $7 billion ?  Travel accounts for over 80 per...
  • HOW TO dynamically generate a Word document with custom header & footer
    Way back in 2004, a project I was working on required a web page to be exported as a Word document (.DOC). Without relying on any components...

Categories

  • AJAX
  • Android
  • APIs
  • App
  • ASP
  • ASP.NET
  • ASP.NET-MVC
  • Azure
  • Azure SQL Database
  • AzureInPictures
  • Bing
  • Book Review
  • Bookmarklet
  • Browsers
  • C#
  • chart
  • Chrome
  • Cloud
  • CSS
  • CSS3
  • DidYouKnow
  • E-Commerce
  • Excel
  • FB
  • Fiddler
  • Firefox
  • Gadgets
  • GeoLocation
  • GMail
  • Google
  • Google Docs
  • Google Reader
  • Health
  • Hotmail
  • HOWTO
  • HTML
  • HTML/CSS
  • HTML5
  • Humor
  • Hyderabad
  • IE
  • IIS
  • India
  • Internet
  • IT
  • Javascript
  • jQuery
  • JSON
  • JSONP
  • Laptop
  • Learning Resources
  • Lists
  • Map
  • Metrics
  • Microsoft
  • miscellaneous
  • Mobile
  • NAPA
  • Office365
  • Opera
  • PDF
  • Performance
  • Personal
  • PHP
  • PM
  • PowerShell
  • Privacy
  • Programming
  • Rant
  • Safari
  • Science
  • Search Engines
  • SearchEngines
  • Security
  • SEO
  • Sharepoint
  • SharePoint2013
  • Silverlight
  • Software Engineering
  • Solutions
  • SQL Azure
  • SQL Server
  • TFS
  • Tip
  • Tips
  • Tools
  • Tools/Utilities
  • Trivia
  • TWIL
  • Twitter
  • UX
  • VM
  • VS.NET
  • VS2010
  • VS2012
  • WCF
  • WebApps
  • Websites
  • WF
  • Windows Phone
  • Windows7
  • Windows8
  • Word
  • WP7
  • WPF

Blog Archive

  • ►  2013 (112)
    • ►  October (16)
    • ►  September (14)
    • ►  August (8)
    • ►  July (8)
    • ►  June (13)
    • ►  May (12)
    • ►  April (12)
    • ►  March (8)
    • ►  February (15)
    • ►  January (6)
  • ►  2012 (127)
    • ►  December (11)
    • ►  November (14)
    • ►  October (13)
    • ►  September (14)
    • ►  August (16)
    • ►  July (16)
    • ►  June (6)
    • ►  May (5)
    • ►  April (11)
    • ►  March (12)
    • ►  February (7)
    • ►  January (2)
  • ▼  2011 (98)
    • ►  December (5)
    • ►  November (2)
    • ►  October (5)
    • ►  September (7)
    • ►  August (7)
    • ►  July (15)
    • ▼  June (10)
      • Notes from Tech-Ed session "Team Foundation Server...
      • IBM turns 100
      • Notes from Tech-Ed session "Internet Information S...
      • JavaScript: The Good Parts - photo gag
      • Try these VHDs instead of using any pirated Micros...
      • Google Maps Driving Directions gadget - useful for...
      • Free, online, open-source book on web performance ...
      • Chrome Offline Installer
      • HOW TO export Contacts from a LG CDMA Mobile to ne...
      • Popular sites which use Lucene
    • ►  May (7)
    • ►  April (8)
    • ►  March (10)
    • ►  February (11)
    • ►  January (11)
  • ►  2010 (163)
    • ►  December (14)
    • ►  November (19)
    • ►  October (19)
    • ►  September (15)
    • ►  August (18)
    • ►  July (17)
    • ►  June (20)
    • ►  May (17)
    • ►  April (19)
    • ►  March (5)
Powered by Blogger.

About Me

Unknown
View my complete profile