Friday, September 28, 2012

Microsoft IIS : Directory Listing Denied

Error:
Directory Listing Denied 
This Virtual Directory does not allow contents to be listed with url rewriting in asp.net.



Workaround:
Step 1. Open IIS from run command "inetmgr"
Step 2. Expand local Computer.
Step 3. Expand "Web Sites" under this "Default Web Site" expand.
Step 4. Locate your project folder under this location and right-click and select properties.
Step 5. In Properties go to the "Documents" tab.
Step 6. Under the "Enable Default Document" section, press the ADD button.
Step 7.  It will open new popup window, now enter the name of your startup document with its extension.(mssqlfix.aspx)
Step 8. Select the newly added value in Default Document section and set it priority level by using the up and down arrows on the left of the window.
Step 9. Now press the OK button and refresh the IIS Server.
Step 10. Right click your project and select browse.
"Directory Listing Denied" When Browsing a Web Site. Directory Listing Denied This Virtual Directory does not allow contents to be listed with url rewriting in asp.net. directory listing denied bypass. directory listing denied hack. directory listing denied apache. directory listing denied virtual directory does not allow contents listed. directory listing denied htaccess. directory listing denied asp.net mvc. directory listing denied wordpress. what does directory listing denied mean. WebStats Directory Listing Denied. Directory Listing Denied Solution

Thursday, February 16, 2012

Configure Asp.net Application On IIS 7.0 and 7.5


Here is the steps to configure Asp.net Applications On IIS 7.0 and 7.5 server.

Following things you have to fix by click on root node of iis Server.
1. Anonymous Authentication should enable
2. Classic.netAppPool must have identity Local
3. Enable directory Browser if disable
4. Check on ISAPI and CGI restrictions

Configure Asp.net Compile File to IIS Virtual Directory
1. Create Virtual directory
2. Convert that directory to the Application by right click on it.

By Applying all these above steps you can configure your Asp 4.0 application to iis 7.0 or 7.5.
How to configure Asp.net Application On IIS 7.0, how to configure iss 7.5, how to configure iis 7.0, how to fix on root node, iis server issues, iis known issues, configuration of iis server, iis 6.0 configuration, dot net application on iis, configure asp dot net compile file to iis virtual directory.

Thursday, December 22, 2011

IIS Administration Interview Questions and Answers Series 7

List of IIS Versions:
5.0 Built-in component of Windows 2000. Windows 2000
5.1 Built-in component of Windows XP Professional. Windows XP Professional
6.0 Built-in component of Windows Server 2003. WIndows Server 2003
7.0 Built-in component of Windows Vista and Windows Server 2008. Windows Vista and WIndows Server 2008
7.5 Built-in component of Windows Server 2008 R2/ Windows7

 
List of Error & Status codes in IIS 6.0?
Status Code Type of Code
100 Series - Informational
200 Series - Success
300 Series - Redirection
400 Series - Client Error
500 Series - Server Error

How to recycle application pool from the command prompt in IIS7?
1. Use appcmd.exe to recycle the application pool from the command prompt.
2. appcmd.exe is the command line tool for IIS7, you will find this tool at following location :
%systemroot%\system32\inetsrv\appcmd
3. To recycle your application pool use the following command:
appcmd recycle apppool /apppool.name:<application pool name>

What are the Different steps to be followed to get SSL(Secure Sockets Layer) for our Web Application?
1. Intially we have to Generate a certificate request from our IIS
2. Now we have to request a certificate from the certificate authority(CA)
3. This CA is an entity which issues Digital Certificates.
4. After receiving the certificate we have to install that particular certificate on our Web Server using IIS
5. We have to use Secure Hyper Text Transfer Protocol(HTTPS) when accessing secure pages in our application.

By this way we could make our web page as SSL protected

What is the purpose of IIS application pools?
We use applicaiton pools for isolation purpose. Every application within an application pool used the same worker process. Each worker process operates as a separate instance of the worker process executable, W3wp.exe, the worker process that services one application pool is separated from the worker process that services another.

In simplest words we use application pools for ISOLATION purpose.

What is Windows Process Activation Service?
The Windows Process Activation Service (WAS) provides process activation, resource management and health management services for message-activated applications. It manages application pool configuration and the creation and lifetime of worker processes for HTTP and other protocols (net.tcp,net.pipe,net.msmq)

How can we check whether IIS is being installed in my system or not?
To verify if IIS is installed or not we need to go to ’Add or Remove Programs’ utility in the Control panel and click on the ’Add/Remove Windows Components’ in the side menu.

There we must locate an item called "Internet Information Services (IIS)". If this is checked, IIS should be installed. So that you can have your IIS installed in your system if it is not installed

Tuesday, December 20, 2011

IIS Administration Interview Questions and Answers Series 6

Can we create one Application Pool From Another Application Pool?
Yes. We can create, while creating Application, Application Pool From IIS, there should have two option available first one is for Default Setting and Another is for Existing Setting as template. We can select the second one and from the drop down listed below we can select any on the Application Pool as Template,.

What are the main components of SVCHost.exe?
Main components for SVCHost.exe are WWW Publishing Service (W3SVC) and Windows Activation Porcess (WAP). W3SVC is the mediator of HTTP.SYS and Windows Activation Process. Windows Activation Process maintain the worker processes.


What are the different way that we can hosted site on IIS?
We can hosted site on IIS either creating Virtual Directory through IIS manager or Using Folder Web Sharing. Apart from that Visual studio provide some inbuilt features to host the site on IIS like using Publishing the web site, Using Copy web Tool or Creating Virtual directory during the creating the project by choosing Location as HTTP

How does IIS process an ASP.net request?
When client request for an aspx pages, request comes to kernel level off IIS means to HTTP.SYS . HTTP.SYS receives the request and based on the application pool name (Which is already registred with the HTTP.SYS) it send the request to worker process. Windows Activation process works as mediator of them. w3wp.exe loads "aspnet_isapi.dll" files to start the HTTPRuntime . HTTPRuntime creates HTTPApplication objects and all request are passed through HTTPModule and finally reached to HttpHandler . This is the request pipeline. After end of Request pipeline ASP.NET Page lifecycle starts.

From where we can set the Session Time Out in IIS?
We can set the Session time out settings from the Virtual Directory for that site.
Right Click on Virtual Directory > Properties > Click on "Configuration" Button
Goto the "Option" Tab. There in Enable Session State Section you can configure the Session Timeout .

What are the different "Execution Permission" available for IIS for an virtual directory?
There are three Execution Permission available.
1. None
2. Scripts Only
3. Scripts and Executable

From where you can change the ASP.NET Version in IIS?
This can be change from Virtual Directory properties. First open Properties of Virtual Directory > GoTo ASP.NET Version Tab.
There we can have change the ASP.NET Version.

What is the default user name of an anonymous login in IIS?
In IIS, an anonymous user will be given with a user name of "IUSR_MachineName "

How can we take back-ups in IIS Server?
1 : In the IIS (inetmgr), right click on the "Computer" icon under "Internet Information Services" . Click "All Tasks" and select "Backup/Restore Configuration".

2 : Click on button "Create backup". Give Name for your backup file. If you want encryption enable encryption option and give UserName and Password and then click OK.

What is IIS metabase? And In which format IIS stors configurations?
IIS metabase is a special database which is used to maintain the settings and configurations data for IIS. In simple term, it is a configuration base for IIS (Metabase.xml).
IIS 5.0           --> Metabse is in Binary.
IIS 6.0 & 7.5 --> Metabase is in XML.

Saturday, December 17, 2011

IIS Administration Interview Questions and Answers Series 5

Where is the default location for IIS Log files?
The default location is: C:\WINDOWS\system32\LogFiles\W3SVC1

What is ISAPI Filter?
This is one of the more important question for experienced guys.

What are the major innovation in IIS 7.0?
One of the major innovation is components are designed as module and there are major change in administration settings.

What is the Role of Windows Activation Process in IIS?
WAP is the Controller of Worker process under a Application Pool. Windows Activation Process which is managed by the worker process by starting, stopping and recycling the application pool. When to start, stop and Recycle should be defined on Application Pool Settings. Activation Process is also responsible for Health Monitor of Application Pool during run-time.
You can easily find Health monitoring setting in Properties of Application Pool.

What are the different type of application pool available in IIS 7.0?
IIS 7.0 having two types of application pool.
1. DefaultAppPool (Integrated)
2. ClassicAppPool

What are the worker process for IIS 5.1 and IIS 6.0?
For IIS 5.1 ---> aspnet_wp.exe
For IIS 6.0 ---> w3wp.exe

What is Web Farm?
When we hosted our web Application on multiple web server under a load balancer call the Web Farm. This is generally used for heavy load web application where there are many user request at a time. So When Web Application is hosted on Different IIS Server over a load balancer, Load balancer is responsible for distribute the load on different server.

What is the default Identity of an Application Pool?
NetworkServices

How can we set the default page for any web application?
We can set the default page for a web site from the Virtual Directory Setting.
Go To : IIS Manager > Virtual Directory > Right Click > Properties > GoTo Document Tab.

How we can set the Idle Time out of an worker process?
We can set the Idle time out for an worker process from Application Pool Properties.
In Performance Tab of Application pool properties, we can set the Idle Time out of the worker process. This means worker process will shut down after that given time period if it stay idle. And will again wake up again if a new request comes.

Is there any alternative way to host site on IIS rather than opening IIS Manager?
Yes, We can directly host any site from the physical location of directory itself.
Right Click on Physical Folder > Properties > Web Sharing
There you need to select > "Share This Folder" Option Button. Then it will ask for alias name and other setting. Then Click on OK.
To Validate : Run > Inetmgr > Check there should an virtual directory with the same "Alias" name that you have given.
If there are already one Virtual directory exist it will showing you the error message while you providing the "Alias" name.

Thursday, December 15, 2011

IIS Administration Interview Questions and Answers Series 4

Does One Web Application can have multiple Application Pool?
No. Every Web Application should have one Application Pool. By-default it is "DefaultAppPool ".

Which version of IIS is available in Windows Server 2008?
IIS 7.0 .

How we can save an Application Pool Settings?
Application Pool Settings can be save as "XML" Format.
Right Click on Application Pool ---> All Task ---> Save Configuration to a File .
This will save all the settings of Application Pool as an XML file. We can protect with password as-well.

Which Tool is used for Remote IIS Debugging?
The tool for debugging is  msvsmon.exe
This is located at : <Installation path>\Microsoft Visual Studio 8\Common7\IDE\Remote Debugger\x86

What are the different authentication mode available for IIS Remote Debugging?
For IIS Remote Debugging msvsmon supported two authentication mode
1. Windows Authentication
2. No-Authentication

How can we get the list of worker process running in IIS along with the Application pool name ?
By running iisapp.vbs script from command Prompt.
Below are the steps :
Start ---> Run ---> CMD --->navigate to Windows > System32 ---->Run cscript iisapp.vbs

If there are multiple worker process running on IIS, then how can you attach a particular worker process for application?
Well, If there are multiple worker process running in IIS, it means I have to know the name of my application pool. Then I can run cscript iisapi.vbs script to find out the process ID and Application Pool name . Based on the process Id for particular application I have to attache the process from Visual studio IDE.

Why do we need to IIS Remote Debugging ?
There are following reasons where we can use remote debugging
1. Your development server does not have IIS installed.
2. Development server and Build/Released/Hosting Server is different
3. Multiple user want to debug simultaneously.

Does IIS allows multiple user to Remote debug simultaneously?
Yes. This is one of the great features of msvsmon.exe . Each instance of the remote debugger has a unique server name.we can give an instance of the remote debugger any server name. Now multiple user can able to access the server instance.

What is the use of aspnet_regiis -i command?
This is used automatically register the .NET Framework with your IIS.

Can we have multiple web sites on IIS?
Yes. IIS Can have multiple web sites and Each and every web sites can have multiple virtual Directory.
Note : Here web sites means the Root Node.

Monday, December 12, 2011

IIS Administration Interview Questions and Answers Series 3

What is 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_ServerName" 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 Workr process called Web Gardens. Each Worker Process Should have there own Thread and Own Memory space.

Best Practice: 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 --> select Properties --> Go to Performance Tab  -->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 are hosted on IIS by using Attaching of Worker Process. 
From Visual Studio IDE > Tools > Attach To Process
Select the particular Process, then start debugging.

How we can open IIS Configuration manager ?
Go to Start--> Run --->enter "inetmgr"  ---> Click enter
Or 
We can open it from control panel > Administrative tools.

How we can create a Virtual Directory on IIS?
Open IIS Configuration Manager then Right Click on Default web sites > New > Virtual Directory.
Browse the Physical Path. Set the properties and Click OK.

What are the permission settings are available for Virtual Directory?
Here is the list of permission that can be set during virtual directory creation
1. Read
2. Run Scripts
3. Execute:
4. Write:
5. Browse

What is the folder location for Virtual Directory ?
 <Drive>:\inetpub\wwwroot

What is the use of Enable Pinging Properties for Application Pool?
IIS periodically monitors the health of a worker process like Idle or not, time for recycle or not, all Worker process are running properly or not . If Pining enables, Activation Process monitor Worker process performance, health, idle time etc. By default it sets to 30 seconds.

Twitter Delicious Facebook Digg Stumbleupon Favorites More