Before we start,

Step 1. Publish Your Application.

From Visual Studio

Step 2. Create a Folder for the Site.

Step 3. Open IIS Manager.

Press Win + R, type inetmgr, and hit Enter

Step 4. Add a New Website.

Step 5. Set Application Pool

Step 6. Set Folder Permissions

Step 7. Test the Deployment.

Common Issues & Fixes

Issue Solution
403 Forbidden Check folder permissions
500 Internal Server Error Check the logs or the event viewer
404 Not Found Verify correct routing and app start point
App Not Starting Make sure the correct .NET Hosting Bundle is installed
Kestrel Not Responding For .NET Core, check the web.config for the correct processPath