Home / .NET / Hosting Windows Application on Internet Information Services (IIS)
hosting

Hosting Windows Application on Internet Information Services (IIS)

Website Deployment on IIS/ Hosting In IIS:

Step 1:  Open Internet Information Services (IIS).

  • To open IIS open Run Prompt(Ctrl+R) >> Enter command: ‘inetmgr’
  • Open control panel >> Administrative tools >> Internet Information Services (IIS) Manager

Following window will appear.
IIS_FIG_1 Hosting Windows Application on Internet Information Services (IIS) .NET Webhosting

Step 2: Creating Website

  • Right click on “Sites” folder & Click “Add Website”.

IIS_FIG_2 Hosting Windows Application on Internet Information Services (IIS) .NET Webhosting

  • On Click of Add Website below window will appear.
  • Provide your site name. You can choose application pools from drop down.
  • Select Target location of Published Website.

IIS_FIG_3 Hosting Windows Application on Internet Information Services (IIS) .NET Webhosting

Step 3: Application Pool setting:

  • Click on the application pool
  • Select your site application pool “Edit Application Pool” window will appear. Select “.Net Framework Version” according to your application & click ok.

IIS_FIG_4 Hosting Windows Application on Internet Information Services (IIS) .NET Webhosting




Browse your website & Enjoy……………….

Step 4: Common Errors while Hosting Application

If you are facing problems please follow following steps:

Step A): Go to the Publish Folder i.e. D:\ HostProjects\

  • Open the Data Folder from the Publish Folder.
  • Provide following access to the Data Folder >>
  1. Network Service
    • Right Click on Data Folder >> Security tab >> Edit >> Add >> Network Service.
    • Provide following access:
    • Modify • Read & Execute • List folder contents • Read • Write

IIS_FIG_5 Hosting Windows Application on Internet Information Services (IIS) .NET Webhosting

On Click of Edit Button:

IIS_FIG_6 Hosting Windows Application on Internet Information Services (IIS) .NET Webhosting

Add Network Service object name.
IIS_FIG_7 Hosting Windows Application on Internet Information Services (IIS) .NET Webhosting

Step B): IIS WPG – Similarly follow above steps.

  1. IIS WPG:
    • IIS_WPG group membership provides the minimum set of user rights and permissions required to .
    • It provides a convenient way to use a specific user account, which would be a member of run an application.

(iii) IIS_WPG, for the application pool identity without having to manually assign the user rights and permissions to that account.

Error 1: Net framework version error.

IIS_FIG_81 Hosting Windows Application on Internet Information Services (IIS) .NET Webhosting

Description: This error is caused because of .Net framework version 2.0 is default in your application pool. Sol please changes the version according to your application need. My test application needs .net framework version 4.0 & steps to change are shown below.

Solution:





Step 1: Go to application pool on “Connections” Explorer of IIS.
IIS_FIG_9 Hosting Windows Application on Internet Information Services (IIS) .NET Webhosting

Step 2: Double-Click on your application pool following window will open.
IIS_FIG_10 Hosting Windows Application on Internet Information Services (IIS) .NET Webhosting

Select .net Framework according to your application need & recycle the application pool.

Error 2: HTTP Error 403.14 – Forbidden

Description: HTTP Error 403.14 – Forbidden – The Web server is configured to not list the contents of this directory.

Solution:

Step 1: Open IIS Select IIS Home & double click on “Directory Browsing
IIS_FIG_11 Hosting Windows Application on Internet Information Services (IIS) .NET Webhosting

Step 2:  Enable Directory Browsing
IIS_FIG_12 Hosting Windows Application on Internet Information Services (IIS) .NET Webhosting

About Helpservices

About This site (allhelpservices.com) is dedicated to helping other bloggers learn the skills of blogging, wordpress, education, technology, social media sharing , SEO, Electronics, Earn Money From Blogging, Web hosting and web share their own experiences and promote the blogging medium. We started Allhelpservices in August 2015 mainly because we wanted to keep a record of what we wear learning from development and because we wanted to connect with other learners.

Check Also

string

String Manipulation function in VB

In this, we will learn how to use some of the string manipulation function such ...

Leave a Reply