How do Web Publish of nested applications for IIS?

1

I'm developing a project that consists of a portal and an administration interface.

In Visual Studio I have two ASP.NET projects, where one is Portal and the other is the administration interface.

In my local IIS I have an application called PortalWeb and within this application I have a (sub-) application called PortalAdmin . In this way, you only need to ignore the / Admin route in the main application ( PortalWeb ) and whenever I access the / Admin application address called the PortalAdmin application.

To illustrate, applications in IIS look like this

I want the applications to look exactly like this on my server. But I want to do this using IIS's WebPublish. Currently I can send the parent application ( Portal ) via WebPublish, but in the Admin application there is no option to configure it.

    
asked by anonymous 20.01.2017 / 12:56

1 answer

1

I think the solution is simpler than you think ...

First, generate a profile of Web Deploy from the Portal system.

After this, a file similar to this one (edited in Sublime Text) should be generated.

<?xml version="1.0" encoding="utf-8"?>
<publishData>
  <publishProfile
    publishUrl="https://SERVER/msdeploy.axd"
    msdeploySite="PATH"
    destinationAppUrl="URL_OPEN"
    mySQLDBConnectionString=""
    SQLServerDBConnectionString=""
    profileName="Default Settings"
    publishMethod="MSDeploy"
    userName="USER" />
</publishData>

This file is one of the places to magic . Where is msdeploySite , change the value to Portal / Admin (Port address plus the suffix of your Sub Application, in your case / Admin ). >

This can also be done when importing the profile or publishing the system, just add the Sub Application in this place:

Oncethisisdone,justpublishnormally.

  

JustbecarefulnottogiveoverrideintheSubApplicationwhenyoupublishthePortal.Insummary,donotdeletefilesthatdonotbelongtothePortal.

ForthosewhodonotknowhowtoconfigureWebDeploy, see this tutorial.

    
20.01.2017 / 14:38