DEV Community

Musta Aga
Musta Aga

Posted on

2

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.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

nextjs tutorial video

Youtube Tutorial Series πŸ“Ί

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series πŸ‘€

Watch the Youtube series