Hi Guest 1 HomePage 1 Jobs 1 WalkIn 1Articles  

 :) Latest Topic
Partner API
Composite API
Open API
Internal API
Composite API
Soap API
FullContact API
Amazon S3 API
Boss Mobile
Fujezone Mobile
 Nokia Mobile
 :) Hot Jobs
 :) Latest Articles


Step to publish Web API on IIS Server?
Question Posted on 12 Oct 2021

Home >> API >> API Questions >> Step to publish Web API on IIS Server?

Step to publish Web API on IIS Server?
In below step first we will publish asp.net web api then will host on to the server. Below are the different steps to publish and deploy the Web API.
(1)First we will build ASP.NET web API project and solution in release mode.
(2)Now in next step we will right click on Web API project and click "Publish" menu as given in below screen

WebAPI Publish
(3)In next step Publish Web pane is opened where we need to click on Profile tab on left. And there is "Select or import a public profile" in which you can either choose existing one or create new publish profile as in the below image

WebAPI Profile
after that we will click on ok and move on the connection tab in publish web.
(4)In next screen we will get below screen where we choose the File System in publish method and choose desired location in Target Location which we will used to map IIS.

WebAPI Profile2
(5)Now we choose configuration mode Release as in the following image and click on Next button.

WebAPI Configure
There are some options such as Delete all existing files prior to publish which means it delete all existing files in target location publish folder and create new files.
(6)Now we get publish preview which shows publish path and profile name.

WebAPI publish
Now click on publish button and all published files created at target location as in the following image

WebAPI publishWebAPI
Now to Host below are the three step
(1)Open IIS by click inetmgr
(2)In the IIS manager, Right click on Sites under Connections pane as in the following image

IIS Manager
(3)In last step we will put sitename,application pool and also physical path as gievne below

IIS Manager Part
Now API IS ready for test

Other Important Questions
How to set only JSON output in WebApiConfig file in App_Start folder?
What are the five main symptoms of Bot Attacks on APIs
Step to publish Web API on IIS Server?
Getting error in dotnet "EntityFrameworkCore does not exist in the namespace Microsoft"
A _____ status code indicates that a request was successful and as a result, a resource has been created.

Hello Sir/Madam as Covid is spreading we request you to please take care your self and visit helpsthepoor.com

Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |