How to Publish Web Applications in Internet Information Services(IIS)

Introduction

In this article, I am going to discuss How to publish web applications in Internet Information Services(IIS) in detail with Examples.

Step 1. Right-click on the solution explorer in Visual Studio -> then click the Publish button.

publish

Step 2. Click the Folder Tab -> choose a folder for your wish where you want to publish the files -> Finally, click the Publish button.

target Forlder

Step 3. Click the Settings Link.

TargetLocationSetting

Step 4. Click Settings Tab -> Expand file publish options.

Select the below Items.

  • Delete all existing files prior to publishing.
  • Precomplete during publishing.

publish setting

Click the configure Link button -> In merge options, select “Do not merge. Create a separate assembly for each page and control” -> Click Ok button.

advanced settingd

Finally, click the Save button on the Folder Profile Screen -> click the publish button on the Publish screen.

Step 4. Search “Internet Information Services(IIS) Manager” on the windows screen -> Expand “F2ws104(your Server Name)” -> Expand “Sites” -> Right-click on “Default Web Site” -> Click Add application.

add application

Step 5. Alias application name(e.g. Test) -> Provide solution published path in the Physical path.

Alais

Click the select button on the above screen -> choose Application pool : (e.g. .NET v4.5 Classic) -> click Ok button.

select protocol

Click the Ok button “add application” screen. Finally, create your Application Test.

Creation Success

Step 6. The final Application Path looks like this http://f2ws104/Test/TestForm.asp.

Final Path

Path Explanation