kevingoos
kevingoos

Reputation: 4303

Deploy ASP.NET application to another directory inside the website

I made an other application inside my website on IIS. But I cannot get it to deploy to this application, instead it always deploys to the root of my website.

Website structure File structure

It has to publish to the api folder (yellow), but instead it publish to the root of the website (selected). How can I configure my website to pubish to the correct folder?

Upvotes: 0

Views: 64

Answers (1)

Frank Fajardo
Frank Fajardo

Reputation: 7349

I'll assume you are using Visual Studio and you are using Publish Profiles.

And I suspect your Publish Profile could be set like this:

  • Site Name: Prd-A1086-AMDM
  • Destination URL: http://{your-domain}/api

Instead, you should have it like this:

  • Site Name: Prd-A1086-AMDM/api (Note the subsite /api)
  • Destination URL: http://{your-domain}/api

Upvotes: 1

Related Questions