390 likes | 723 Views
DEV349. IIS Express for Web Developers . Wade A. Hilmo Principal Development Lead Microsoft Corporation. Objectives and Takeaways. Session Objectives: Provide an overview of IIS Express Demonstrate several IIS Express capabilities Discuss the future of IIS Express Key Takeaways:
E N D
DEV349 IIS Express for Web Developers Wade A. Hilmo Principal Development Lead Microsoft Corporation
Objectives and Takeaways • Session Objectives: • Provide an overview of IIS Express • Demonstrate several IIS Express capabilities • Discuss the future of IIS Express • Key Takeaways: • IIS Express provides developers with access to the Microsoft Web Platform where they might not have had access in the past • Enables the use of important features that are available only on new servers like Windows 2008 R2 and Windows Server 2012
Agenda • IIS Express Overview • The Past, Present, and Future • IIS Express Architecture • Process Model Differences • Different Modes • IIS Express Tips & Tricks • IIS 8 Sneak Peak
IIS Express Overview: The Present IIS 7.5 Express delivers best of both worlds
IIS Express Overview: The Present IIS 7.5 Express delivers best of both worlds
IIS Express 7.5 Support * Can be used with earlier versions of Visual Studio, but built-in integration is not available
IIS Express Overview: The Present IIS Express allows you to pick the right tools for your development needs and environment Too Small Just Right Too Big But it’s not a replacement for IIS!
IIS 8.0 Express Overview: The Future * WebSocket support is not available in IIS 8.0 Express Beta
IIS Express 8.0 Support * Can be used with earlier versions of Visual Studio, but built-in integration is not available
demo IIS 8 Express Tour Web Platform InstallerFiles & Directories
IIS 7 & IIS 8 Architecture Worker Process (W3WP.EXE) Service Host (SVCHost.EXE) Worker Process (W3WP.EXE) Machine-globalapphost.config Windows Process Activation Service (WAS) World Wide Web Service (W3SVC) HTTP.SYS Kernel-Mode Listener
IIS Express Architecture IISEXPRESS.EXE Per-User apphost.config HTTP.SYS Kernel-Mode Listener
Personal Web Server Mode • By default one applicationHost.config file is generated per user unless one is specified: • Sites are persistent, similar to IIS • Template located at: %ProgramFiles%\IIS Express\config\templates\PersonalWebServer\applicationHost.config • Syntax:iisexpress.exe [/config:config-file] [/site:site-name] [/systray:true|false] [/siteid:site-id] [/userhome:user-home] • ApplicationHost.config file is kept in %UserProfile%\Documents\IISExpress\config
Application Server Mode • Configuration is transient • Temporary configuration file generated when IIS Express starts • Template located at: %ProgramFiles%\IIS Express\AppServer\applicationHost.config • Syntax:iisexpress.exe /path:app-path[/port:port-number] [/clr:clr-version][/systray:true|false] • ApplicationHost.configfile is created in user’s %TEMP%\iisexpress folder
Managing IIS Express in Visual Studio 2010 • Visual Studio 2010 SP1 and later have built-in IIS Express integration
Managing IIS Express in Visual Studio 11 • Visual Studio 11 uses IIS Express by default(This option can also be enabled in VS 2010)
Managing IIS Express in the System Tray • Provides simple list of running websites in IIS Express • Allows you to stop your active IIS Express websites
demo IIS 8 Express & Visual Studio Creating a web project
IIS Express Tips & Tricks 1 of 2 • When in doubt, you can always rename the applicationHost.config file in your profile • IIS Express will create a new one for you from a template • Configuring IIS Express • AppCmd • Exporting Syntax from IIS Configuration Editor • Visual Studio (or Notepad )
IIS Express Tips & Tricks 2 of 2 • Do not modify the ApplicationHost.config template files • Only modify your per-user files • Use IISExpressAdminCmd.exe for easy hostname bindings • See Scott Hanselman’s excellent Working with SSL at Development Time is easier with IISExpress blog for more information: • http://www.hanselman.com/blog/WorkingWithSSLAtDevelopmentTimeIsEasierWithIISExpress.aspx
demo IIS 8 Express & Visual Studio Debugging a 64 bit Native IIS Module
Sneak Preview of IIS 8 • IIS 8 Ships with Windows Server 2012 • Lots of new features: • See our other IIS breakout sessions for detailed information about these features
Summary • In this session you: • Obtained overview of the past, present, and future of IIS Express • Learned several IIS Express capabilities • Studied the IIS Express Architecture • Discovered the different IIS Express modes • Took a quick look at the future of IIS
Related Content WSV331 - What's New with IIS 8: Open Web Platform for Cloud WSV332 - What's New with IIS 8: Performance, Scalability, and Security DEV349 - Internet Information Services (IIS) Express for Web Developers
IIS.NET: Home for the IIS Community! In-depth technical articles and samples Connect with other IIS experts through blogs http://learn.iis.net http://blogs.iis.net Free advice and assistance in forums Download center with IIS solutions • http://forums.iis.net http://www.iis.net/download
Resources Learning TechNet • Connect. Share. Discuss. • Microsoft Certification & Training Resources http://europe.msteched.com www.microsoft.com/learning • Resources for IT Professionals • Resources for Developers http://microsoft.com/technet http://microsoft.com/msdn
Evaluations Submit your evals online http://europe.msteched.com/sessions
Q & A Questions? Robert McMurray Program Manager Microsoft Corporation
© 2012 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.