Académique Documents
Professionnel Documents
Culture Documents
Sign in
home
articles
quick answers
discussions
features
community
help
Next
Searchforarticles,questions,tips
Article Browse Code Stats Revisions (4) Alternatives Comments & Discussions (68)
About Article
This article describes some features and architecture of IIS 7.0 and deployment of ASP.NET sites on IIS Type Licence First Posted Views Bookmarked Article CPOL 19 Aug 2008 367,623 204 times
Introduction
1. 2. 3. 4. 5. 6. 7. Introduction to IIS 7.0 Features of IIS 7.0 Basic Architecture of IIS 7.0 How to Deploy ASP.NET Websites on IIS 7.0 How to Create Application Pool Assign Application Pool To Your Application Configure Web Garden on IIS 7.0 What is Application Pool? Types of Application Pool Identity Of Application Pool How To Create An Application Pool and Assign To a Web Application What is Web Garden? How To Create Web Garden? Is it Recommended to use Web Garden ? 8. 9. 10. 11. IIS 6.0 Vs IIS 7.0 Where Do I Get IIS 7.0 References History
Top News
Introducing the $99 Linux Supercomputer
Following are some features of IIS 7.0: IIS 7.0 provides features and functionality that enable administrators to reliably and effectively manage Web infrastructures. IIS 7.0 has a distributed file-based configuration system that enables IIS settings to be stored in web.config files along with the ASP.NET settings. IIS 7.0 provides a cost-effective, more scalable Web server platform for delivering reliable Web hosting to a broad set of customers. Major innovations in IIS 7.0: A modular, extensible core Web server A unified, distributed file-based configuration system Integrated health monitoring and diagnostics A set of new administration tools with delegation support For more features and product understanding, check here.
Related Articles
Creating animations with Dundas Chart for ASP.NET Smarter Data Labels with Dundas Chart SmartLabels Understanding Chart Areas with Dundas Chart for .NET Add "Select All" to parameter lists in SQL Reporting Using screensavers inside the Windows Media Player Making Sense of Geographic Data with Dundas Map and AJAX Handling connection notification between a desktop machine and Windows CE based devices Create data-driven applications with the Hera Application Framework Towards the self-documenting database: extended properties Accessibility audit vs. accessibility testing Digital Signatures and PDF Documents Color Scale Filter WMP Power Hour APP Merge Landscape and Portrait PDFs using ASP.NET How to conduct an SMS survey using a cell phone connected SMS gateway and MS Access Using Barcodes in Documents Best Practices How to Retrieve EMC Centera Cluster/Pool Capabilities "Hey! Is That My Car? How to Sharpen a QuickBird Satellite Image Using DotImage" Integrate your SharePoint environment into the open standards-based WebSphere Portal platform using the Visual Studio IDE VBScript / Excel 2007 - An easy way to access DBF files Retrieving and Storing Call History
The main components of IIS 7.0 are HTTP.Sys, Svchost.Exe , Application Pool , Worker Process (W3WP.exe) and Configuration Store .
H T T P . S y s : It the Kernel mode Protocol stack which listens to the HTTP and HTTPS Request. W3SVC and
WAS are the parts of Svchost.exe. W3SVC is the Listener of Request from kernel mode that is passed by the H T T P . S y s . W3SVC also interacts with W i n d o w s A c t i v a t i o n P r o c e s swhich is managed by the worker process by starting, stopping and recycling the application pool. It was also responsible for Health Monitor of Application Pool during runtime. Configuration stores all web.config and ASP.NET Settings and other configuration in XML Hierarchy form. W3wp.exe is a long-running process that processes requests and generates responses. The following diagram shows you the process flow of IIS 7.0. This is the flow of User Request to IIS and gets the Response from IIS.
User Request Pass from Kernel Level to User Level Via H t t p . S y sand then passes to svchost, and then goes to Application Pool. For more details, please click here.
"TestWeb" is a recently pasted webapplication on your wwwroot folder. Step 4: We need to convert it to an application, just right click and then Click on "ConvertToApplication" as shown in the following picture:
After converting it to application, its icon will be changed and then you can set the property for your web application from the middle pane. You can set IIS Authentication Mode, Default Page Just like IIS 6.0:
You can change Security Settings on Authentication Section. By default Setting will be set from your web.config itself. As in my web.config Form Authentication was set that's why, Forms Authentication has been Enabled. If we want to change the status, just double click and update status to Enabled to Disabled or Vice Versa.
Now one most important part is to set the Application Pool for your application.
Step 2: If you are writing some thing on the server [may be writes Error Events Logs], you need to change the Pool Identity to Local System. Right click on Pool Identity setting as shown in the following image: There are three identities of Application Pool: Network Service Local Service Local System
Step 2: Finally assign your created Application Pool "p o o l " to "T e s t W e b " Application.
Now you can run your application by just typing http:\\localhost\testweb and it can be accessible on network by IP also.
In your IIS, there may be more on Web sites hosted and by creating Application Pool, you can just assign a Separate Worker Process to your application. I have already discussed how you can assign Application Pool to your web application.
N e t w o r k S e r v i c e s
As given in the picture, in IIS Server there may be multiple Applicationpool and each application pool has at least a single Worker Process. Web Garden should contain multiple Worker processes. There are certain restrictions to use Web Garden with your web application. If we use Session Mode to "in proc", our application will not work correctly because session will be handled by different Worker Process. To avoid this type of problem, we should have to use Session Mode "out proc" and we can use "Session State Server" or "SQL-Server Session State".
Main Advantage : The worker processes in a Web garden shares the requests that arrive for that particular application pool. If a worker process fails, another worker process can continue to process requests.
Reference
History
08/20/2008: Article published 08/28/2008: Added Section: Web Garden on IIS 7.0 Modified some text
License
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)
Abhijit Jana
Software Developer (Senior) India Member
Follow on Twitter
.NET Consultant | Former Microsoft MVP - ASP.NET | CodeProject MVP, Mentor, Insiders| Technology Evangelist | Author | Speaker | Geek | Blogger | Husband Blog : http://abhijitjana.net Web Site : http://dailydotnettips.com Twitter : @AbhijitJana My Kinect Book : Kinect for Windows SDK Programming Guide
Article Top
Like
11
Tweet
Excellent
Vote
My vote of 5
Nice. would like to read about IIS 7.5...
Sign In View Thread Permalink
Maddy_1008
Caution/ Recommendation
Member 2127089
Great tutorial but you indicated that users should change to Local System to allow them to write to the folder - "you need to change the Pool Identity to Local System" Please use Local System with caution as it creates a security threat, opening your application to malicious users who can take over your machine. Instead modify security permissions for NETWORK SERVICE.
My vote of 5
Thanks Sir...
ANJYR
I have one major doubt.. How to deploy website with database..means in which path i have to keep my database if that will be in SQL
Sign In View Thread Permalink
hariom_soni
Dear Sir, I tried to configure iis7 website but i got only error "Not found" Please suggest me to solve error
Sign In View Thread Permalink
Nice Article
Suvabrata Roy
Will you please elaborate something on AppDomain and Worker Process .... Thanks for The article
Sign In View Thread Permalink
Session Problem
Member 9273998
H e l l o I h a v e a p r o b l e m : w e b 1 a p p 1 w e b 2 a p p 2 , a U s e r A e n t e r s y o u r P C a n d s u p p o s e d l y c l o s e s t h e s e s s i o n o f t h e a p p l i c a t i o n , a U s e r B l o g i n o n t h e s a m e P C u s e r a n d U s e r B c a n s e e a n d i t i s m i x e d w i t h t h e i n f o r m a t i o n o f U s e r A . t h e i m p l e m e n t a t i o n o f W e b G a r d e n , I w o u l d s o l v e t h i s p r o b l e m ? o r h o w I c a n f i x ? N o t e : Y o u r t h e m e i s e x c e l l e n t
Suvabrata Roy
greta article
Do not criticise, if you don't have any better idea.
Sign In View Thread Permalink
Member 8687094
My Vote of 5
Good Do not criticise, if you don't have any better idea.
Shahin Khorshidnia
My vote of 5
My 5! Nice
sravani.v
1 2 3 4 5 6 7 Rant Admin
Next
Permalink | Advertise | Privacy | Mobile Web03 | 2.6.13022.3 | Last Updated 5 Sep 2008
Article Copyright 2008 by Abhijit Jana Everything else Copyright CodeProject, 1999-2013 Terms of Use