Presentation is loading. Please wait.

Presentation is loading. Please wait.

Internet Information Services 7.0 for ASP.Net Developers Andrew Westgarth Tuesday 9 th December 2008 Scottish Developers - Glasgow Andrew Westgarth -

Similar presentations


Presentation on theme: "Internet Information Services 7.0 for ASP.Net Developers Andrew Westgarth Tuesday 9 th December 2008 Scottish Developers - Glasgow Andrew Westgarth -"— Presentation transcript:

1 Internet Information Services 7.0 for ASP.Net Developers Andrew Westgarth Tuesday 9 th December 2008 Scottish Developers - Glasgow Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk

2 Monkey Business ASP.Net Code Monkey VBUG North East Regional Coordinator Live in Sunderland! Huge Sunderland A.F.C. Supporter Very Interested in Wartime exploits of 617 Squadron – The Dam Busters Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk

3 Agenda Overview and Availability in Vista SKUs Architecture Administration Componentization Extensibility Model Troubleshooting and Diagnostics Configuration Features Unified Platform for Web Services and WCF Conclusions Questions Resources Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk

4 Overview Most significant release of IIS since IIS 1.0 Available on Windows Vista and Windows Server 2008 First time development and server platform versions of IIS aligned ASP.Net Integrated Pipeline – New extensibility model – Expanded Productivity Support Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk

5 Availability In Vista SKUs Not Available in Vista Home Basic Parts Available in Vista Home Premium – No FTP Server, Advanced Web Authentication and Authorization, and Remote Administration – Simultaneous Request Limit = 3 All elements of IIS7 found in Windows Server 2008 are available in the Vista Pro SKUs(Business, Enterprise and Ultimate) with the exception of Remote Administration Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk

6 IIS6 Architecture Authentication NTLM BasicAnon Determine Handler CGI Static File ISAPI Send Response CompressLog ASP.Net PHP aspnet_isapi.dll Authentication Forms Windows Map Handler ASPX Trace... Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk

7 IIS6 Request Handling w3wp.exe http.sys Handlers IHttpModule Events CGIStatic FileISAPI EXT ISAPI Filter Notification authentication compression Custom errors logging Determine handler Auth c’reqlog End Net SessionPre-Proc Headers url map Update req cache End req Handler exec Handler map Resolve cache Auth’z req Auth‘c req Begin req Rel req state IHttpHandlers Trace.axdPage Handler Aspnet_isapi.dll Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk

8 IIS7 Architecture Authentication Execute Handler Send Response... HTTP Request HTTP Response Basic Forms Anon Windows ASPX Static File Trace... Log Compress- ion Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk

9 IIS7 Request Handling static fileisapi exttrace.axd*.aspx Native HandlerIHttpHandler Native Module IHttp Module Native Modules Windows Auth Digest Auth Basic Auth begin pre-execute handler acquire state map handler resolve cache authorize authenticate update cache release state execute handler end log Native Modules Managed Modules Url Authorization Role Manager Forms Authentication WAS http.sys Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk

10 Administration New Administration UI New Command Line Utility appcmd.exe New Managed DLL – Microsoft.Web.Administration Can be Delegated Server can be managed Remotely Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk

11 Delegated Administration Server Administration can be delegated via configuration – Allows Administrators to enable others to control aspects of configuration Remote Administration of IIS in Windows Server 2008 Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk

12 Demo – IIS7 Administration Administration UI and AppCmd Review of Microsoft.Web.Administration Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk

13 Componentization IIS7 Now Fully Modular Can have very small server footprint Customise to only install/enable features you want to have running Therefore only patch what you need/use Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk

14 Components of IIS7 Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk SecurityHealth and Diagnostics Application Development FTP Publishing Performance Management Common HTTP Web Server Components Windows Process Activation Service BasicAuthMode DigestAuthMode WindowsAuthMode CertificateAuthMode AnonymousAuthMode IPSecurityModule UrlAuthorizationModule RequestFilteringModule NetFxExtensibility ISAPIModule ISAPIFilterModule CGIModule ASP.Net ServerSideIncludeModule ASP HttpLoggingModule CustomLoggingModule RequestMonitorModule HttpTracingModule ODBCLogging LoggingLibraries FTP Server FTP Management Static Compression Dynamic Compression ManagementConsole ManagementScripting ManagementService Metabase WMICompatability LegacySnap-In LegacyScripts StaticFileModuleDefaultDocumentModuleDirectoryListingModule HttpRedirectCustomErrorModule NetFxEnvironmentProcessModelConfigurationAPI

15 Configuration No more Metabase!!!! Compatability – old metabase pushed to new config – same property names Central File – ApplicationHost.config – Strongly Typed Schema – Use same methodology as ASP.Net.config files Distributed Configuration Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk

16 Demo - Configuration Let’s take a look at the new configuration system. Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk

17 Extensibility Model IIS6 – ISAPI Filter and Extensions IIS7 – Brand New Win32 Native Interface – All IIS Modules written using this interface – IIS Team uses this API just like you WILL! – Full ASP.Net 2.0 Support – IHttpModule available supported today! – ASP.Net 2.0 Handlers run same as today – IIS Manager (UI) – Extend using.Net 2.0 – Diagnostics – Add own events directly into pipeline (System.Diagnostics) Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk

18 ASP.Net HttpHandlers and HttpModules HttpHandler – Similar to ISAPI extensions – Can be called via url – Act as target for incoming requests HttpModules – Plug into the ASP.Net request processing pipeline – Registered for certain events – As the event occurs the ASP.Net invokes the module so it can handle the request Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk

19 Demo Extensibility Build Image Copyright Handler Build Module and Integrate with IIS7 Admin Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk

20 Troubleshooting and Diagnostics Real Time State Information Available – Current Processes Running – Application Pools Process ID – Currently executing requests – AppDomains loaded Real-time starting and stopping of sites Failed Request Tracing Extensive Custom Errors Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk

21 Failed Request Tracing Traces all requests through Pipeline Automatically Enabled on IIS7 Easily identify failing, stuck requests Identifies time take in each module, helping analyzing long running requests Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk

22 Custom Errors Much more detailed – Language specific (Accept-Encoding) – Time – URL – Current Module – Response Status, Sub-Status – More Information – Detailed steps to fix problem where available Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk

23 Demo Troubleshooting Custom Error Pages Failed Request Tracing Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk

24 Unified Platform for Web Services and WCF Host WCF Services using Windows Activation Service (WAS) Supports Non-HTTP Protocols such as – Named Pipes – TCP – MSMQ Provides features for idle-time management, health monitoring, process recycling Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk

25 WAS Processing of Service Requests Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk Worker Process (w3wp.exe) App Domain HttpHandler HttpModule MSMQProcess ProtocolHandler TcpProcess ProtocolHandler NamedPipeProces sProtocolHandler Windows Activation Service (WAS) W3svc ImsmqasItcpasInpass HTTP Listener Adapter Named Pipe Listener Adapter TCP Listener Adapter MSMQ Listener Adapter Http.sysnet.msmq Net.tcp Net.pipe

26 What’s Next? IIS Extensions – Admin Pack; DB Manager; Remote Management – Powershell Provider – URL Rewriter; Application Request Routing – FTP; WebDav – Bandwidth Throttling; Web Playlists Web Platform Installer – W2K3;XP;Vista;W2K8 Web Deployment Tool – Synchronise Web Applications; Package; Migrate; Deploy W2K8 R2 – ASP.Net in Server CORE Best Practices Analzer Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk

27 Conclusions Major Release – Most Significant since 1.0 Fully Customisable – Managed and Native New Pipeline ASP.Net Fully integrated First time desktop and server versions aligned Go and have a Look Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk

28 Questions Now Via my blog – http://www.andrewwestgarth.co.uk/Blog http://www.andrewwestgarth.co.uk/Blog mail@hawaythelads.co.uk Twitter – http://twitter.com/apwestgarthhttp://twitter.com/apwestgarth Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk

29 Resources Andrew Westgarth - http://www.andrewwestgarth.co.uk/Blog - mail@hawaythelads.co.uk IIS Resources – http://www.iis-resources.comhttp://www.iis-resources.com Help with F5 debugging on Vista – http://mvolo.com/blogs/serverside/archive/2006/12/28/Fix-problems- with-Visual-Studio-F5-debugging-of-ASP.Net-applications-on-IIS7- Vista.aspx http://mvolo.com/blogs/serverside/archive/2006/12/28/Fix-problems- with-Visual-Studio-F5-debugging-of-ASP.Net-applications-on-IIS7- Vista.aspx MSDN Magazine Article – http://msdn.microsoft.com/msdnmag/issues/07/03/iis7/default.aspx http://msdn.microsoft.com/msdnmag/issues/07/03/iis7/default.aspx


Download ppt "Internet Information Services 7.0 for ASP.Net Developers Andrew Westgarth Tuesday 9 th December 2008 Scottish Developers - Glasgow Andrew Westgarth -"

Similar presentations


Ads by Google