DEV Community

Musta Aga
Musta Aga

Posted on

How to deploy a Web-App in IIS

In my experience as a programmer, I have work for different types of a company starting from small ones to relatively big.
When working for a small company they may not have a DevOps to make the deployment and all this kind of stuff.
And being in this company I learned on my first 6 months how to deploy a .Net Web-App in a windows server IIS to be clear.
And this is a question I've been asked a lot during my career.
Here are some simple steps on how to do that:

1. Open solution explorer

solution explorer

2. On the project file Not solution file right click=> click Publish

3. On the window opened we chose IIS, FTP, etc

publish target

4. We click "Create Profile" and the next window we chose the "File System" as publish method and in the target location we chose a folder from our local PC

Published method

5. My app is a .Net core application so the configurations in settings will be:

configurations

And we click SAVE
The configuration window gets closed and next, we hit Publish

6. We copy all the files from the folder chosen on step 4 and paste it to the website folder in IIS and with this, you should be done.

Hope this helps someone.

Top comments (0)