Banner Ad

Showing posts with label IIS Tips and Tricks. Show all posts
Showing posts with label IIS Tips and Tricks. Show all posts

Sunday, October 5, 2014

ASP.Net Forums–FAQ #6: ASP.Net Session Expired Problem

By Francis   Posted at   12:29 AM   IIS Tips and Tricks 1 comment
session_expired
Most of the asp.net application using session, especially data driven applications. Mostly these kind of application using “Inproc” mode of session. During development the developer does not face any kind of problem with the session. When deploy the application the problem arise one by one. In this post I just want to share some thoughts and my professional experience on this issue.

Wednesday, October 23, 2013

IIS Tips & Tricks # 2: Set Default page for a website in IIS

By Francis   Posted at   3:24 PM   IIS Tips and Tricks No comments
                         In few websites, if we type the website name, (like www.someurl.com) it will automatically loaded the page www.someurl.com/index.aspx . This is because of the setting of the “Default Document” feature of IIS. 

                           In this post we are going to discuss about this feature of IIS.

  1. Open IIS, by type the command “inetmgr” in Run window.
  2. Select “Default Document” and click.
  3. In the feature view, we can see some type of Document orderly kept.

IIS - Default Document
Default Document - Feature View

          The top most had the high priority and the last one had least priority.
As per the above figure, the document “Default.htm” had the high priority, the file “Default.aspx” had the lowest priority. Which means whenever the user types a url (like www.someurl.com) then IIS look any one of the file exist in the above order on that Virtual Directory. If it finds any one of the file, it will load that page.

         IIS also allow, add/remove the custom default document per website. For example if we are specify a page (say home.htm) as the default document which does not exist in the website then IIS will look into that website and Alert the user as shown below, which explicitly state that that each time when we type the url IIS will look in that order. 

IIS - Add Custom Default Document
Add Custom Default Document
            So as per the alert, it is advisable to move the default document at the top level, which will increase the performance in the sense IIS can avoid to go further down in the list.

Readers, do you have any other tip, please comment me.

Hope this helps!







Tuesday, September 24, 2013

Create Virtual Directory in IIS

By Francis   Posted at   7:19 PM   IIS Tips and Tricks No comments
                  In previous posts I have explained how to create a virtual directory from Visual Studio.
In this post I’m going to tell how to create a virtual directory in IIS.
What is Virtual Directory?:
Virtual directory meant that, it is a mapping between the actual web application files and IIS. That is we map the website files to the IIS in Virtual Directory. If you see in IIS, it look like a directory but it actually points the exact web application path.
Create Virtual Directory:
Here I’m going to create a virtual directory in IIS for the web application which is located in the path :
“G:\DotNetExamples\AllInOne”.
Step 1:
Open IIS. To open IIS, press windows key + R key, which opens “Run” window and type “inetmgr” and press enter, which opens the IIS.
IIS-Create_Virtual_Directory-1
Step 2:
In IIS, Right click on the “Default Web Site” and select the “Add Application” in the float menu.
IIS-Create_Virtual_Directory-2
Step 3:
In this “Add Application” window, we need to specify the “Virtual Directory” name and the physical directory where the actual web site files are located. Leave the application pool as is. Click OK.
IIS-Create_Virtual_Directory-3
Step 4:
Now the Virtual Directory has been created under the “Default Web Site”. To test the application Right click the virtual directory and choose “Manage Application à Browse” which will open the application in the respective default browser.
IIS-Create_Virtual_Directory-4
IIS-Create_Virtual_Directory-5
Hope this helps!



















Tuesday, July 16, 2013

IIS Tips & Tricks # 1: Enable IIS in Windows 7

By Francis   Posted at   11:53 AM   Install IIS No comments
              When I have worked on my Friend’s desktop, I just want to create a virtual directory. So that I just went to “Run” and type “inetmgr” press enter. Eventhough he had installed VS2010, but there is no activation of IIS in local machine. So here I’m going to explain the steps how to install IIS in Windows systems.

Connect with Us