What is the Role of IIS?
Visual studio has ASP.NET Engine which is capable to run Asp.net web application. So we just click on Run button to start the application.
IIS provides a redesigned WWW architecture which can help you achieve better performance, scalability, reliability and security for our Web sites. IIS supports following Protocol HTTP/HTTPS, FTP, FTPS, SMTP Etc. We need to host the site on IIS, when request comes from client it first hits the IIS Server, then the server passed it to ASP.NET worker process to execute. Then the response also passes to client via IIS itself. Note only Hosting of Site we can create our FTP Server, SMTP Server using IIS itself. There are different version of IIS available like 5.1, 6.0, 7.0 etc
IIS provides a redesigned WWW architecture which can help you achieve better performance, scalability, reliability and security for our Web sites. IIS supports following Protocol HTTP/HTTPS, FTP, FTPS, SMTP Etc. We need to host the site on IIS, when request comes from client it first hits the IIS Server, then the server passed it to ASP.NET worker process to execute. Then the response also passes to client via IIS itself. Note only Hosting of Site we can create our FTP Server, SMTP Server using IIS itself. There are different version of IIS available like 5.1, 6.0, 7.0 etc
What is the different version on IIS that you have worked on?
Before answering this question you need to know what are the different IIS version is available in different OS. Below is the list of IIS version with different Operating system.
Windows Server 2008 – Windows Vista – Home Premium/ Ultimate – IIS 7.0
Windows Server 2003 – IIS 6.0
Windows XP Professional – IIS 5.1
Windows Server 2003 – IIS 6.0
Windows XP Professional – IIS 5.1
Now based on your working experience you can say that you have worked on IIS 5.1 and 6.0 or only IIS 7. Etc. Now, the next question that can asked after answering this question is “what is the difference between them ? ” – Well I will come with this later.
What is the Role of Http.Sys in IIS?
HTTP.SYS is the kernel level components of IIS. All client requests comes from client hit the HTTP.Sys of Kernel level. HTTP.SYS then makes a queue for each and every request for each and individual application pool based on the request. Whenever we create any application pool IIS automatically registers the pool with HTTP.SYS to identify the particular during request processing.
Before Giving the Definition: you can say like this, Concept of Application pool has from IIS 6.0.
Application pools are used to separate sets of IIS worker processes that share the same configuration and application boundaries. Application pools used to isolate our web application for better security, reliability, and availability and performance and keep running without impacting each other . The worker process serves as the process boundary that separates each application pool so that when one worker process or application is having an issue or recycles, other applications or worker processes are not affected. One Application Pool can have multiple worker process Also.
Main Point to Remember:
1. Isolation of Different Web Application
2. Individual worker process for different web application
3. More reliably web application
4. Better Performance
2. Individual worker process for different web application
3. More reliably web application
4. Better Performance
What is the Name of Default Application Pool in IIS?
Though we can create new application pool IIS with different settings, but IIS having its own default application pool named : DefaultAppPool.
What are the different types of Identity available in IIS 6.0?
IIS having three different Identities.
1. Local System
2. Local Services
3. Network Services
1. Local System
2. Local Services
3. Network Services
Name of default Identity of IIS6.0?
Default Identity of IIS 6.0 is Network Services. Which is having very minimum rights on your system? The user can only have the read access of the site.
What is Recycling of Application Pool?
Recycling Application pool means recycle the Worker process (w3wp.exe) and the memory used for the web application. There are two types of recycling related with Application pool
1. Recycling Worker Process – Predefined Settings
2. Recycling Worker Process – Based on Memory
2. Recycling Worker Process – Based on Memory
What are the main layers of IIS Architecture?
IIS having mainly two layers Kernel Mode and User Mode
Below are the subsection of both of them.
1. Kernel Mode
o HTTP.SYS
1. Kernel Mode
o HTTP.SYS
2. User Mode
o Web Admin Service
o Virtual Directory
o Application Pool
o Web Admin Service
o Virtual Directory
o Application Pool
What is the Role of Http.Sys in IIS?
HTTP.SYS is the kernel level components of IIS. All client requests comes from client hit the HTTP.Sys of Kernel level. HTTP.SYS then makes a queue for each and every request for each and individual application pool based on the request. Whenever we create any application pool IIS automatically registers the pool with HTTP.SYS to identify the particular during request processing.
What are the different security settings available in IIS?
Below are the commonly used IIS Security settings
1 Anonymous
2 Integrated Windows Authentication
3. Basic Authentication
4. Digest Authentication
5. Passport Authentication
2 Integrated Windows Authentication
3. Basic Authentication
4. Digest Authentication
5. Passport Authentication
For Set security permission you need to go to Virtual Directory > Right Click > Properties > Directory Security
Click on Edit Button.
Click on Edit Button.
What are the default authentication settings for IIS?
Anonymous authentication is the default authentication mode for any site that is hosted on IIS, and it runs under the “IUSR_[Server Name]” account.
What is web garden?
By default Each Application Pool runs with a Single Worker Process (W3Wp.exe). We can assign multiple Worker Process With a Single Application Pool. An Application Poll with multiple Worker process called Web Gardens. Each Worker Process Should has their own Thread and Own Memory space.
Generally its not recommended to use InProc Session mode while we are using Web Garden.
Where session data stores in case of “In-Proc” Session mode?
Session data store inside process memory of worker process [w3wp.exe] .
How we can create an web garden?
For creating web garden we need to go to Application Pool, then Right Click on Application Pool > Properties > Go to Performance Tab
In Web Garden Section, increase the number of worker process. By default it is 1.
In Web Garden Section, increase the number of worker process. By default it is 1.
How we can debug a web application which is hosted on IIS?
We can easily debug any web application that is hosted on IIS by using Attaching of Worker Process.
From Visual Studio IDE > Tools > Attach To Process
Select the particular Process, then start debugging.
From Visual Studio IDE > Tools > Attach To Process
Select the particular Process, then start debugging.
How we can open IIS Configuration manager?
Just simply Run >inetmgr Or we can open it from control panel > Administrative tools.
How we can create a Virtual Directory on IIS?
Open IIS Configuration Manager
First of all Right Click on Default web sites > New > Virtual Directory.
Browse the Physical Path. Set the properties. Click on OK
First of all Right Click on Default web sites > New > Virtual Directory.
Browse the Physical Path. Set the properties. Click on OK
What are the permission settings are available for Virtual Directory?
Below are the lists of permission that can be set during virtual directory creation
1. Read
2. Run Scripts
3. Execute:
4. Write:
5. Browse
1. Read
2. Run Scripts
3. Execute:
4. Write:
5. Browse