Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Deploy NETCORE on IIS Virtual #4406


User avatar
0
chehrhard created

Hi

I try to publish a ASP NETCORE APP on a IIS with virtual directories. I've no merged solution. my top goal is to host the .Host app on one IIS server and the client on another IIS server. i use the latest version of aspnet Zero .

example :
HOST <a class="postlink" href="http://server.acme.com/ApiServer">http://server.acme.com/ApiServer</a> CLIENT : <a class="postlink" href="http://anotherServer.acme.com/AngularUi">http://anotherServer.acme.com/AngularUi</a>

I tried everything, read all posts but no luck.

can you provide a topo for doing this ?

THX

Chris


7 Answer(s)
  • User Avatar
    0
    alirizaadiyahsi created

    Hi @ChEhrhard, what errors are you getting? Did you check *.Host/App_Data/Logs.txt or any console error? And which steps did you apply to deployment?

  • User Avatar
    0
    chehrhard created

    I tried everuthing i found on your forum in relation with IIs deploy. I found several infos like removing the home controller, copiing the files under the host's wwwroot and so on. but nothing to hosts each app on his own server.

  • User Avatar
    0
    alirizaadiyahsi created

    It is not clear what is the problem. What you mean by saying "I tried everything, read all posts but no luck. "? What did you try and what errors did you get? Deployment document is here: <a class="postlink" href="https://aspnetzero.com/Documents/Development-Guide-Angular#deployment">https://aspnetzero.com/Documents/Develo ... deployment</a>

  • User Avatar
    0
    ismcagdas created
    Support Team

    @ChEhrhard do you have any javascript console error or any server side error ? If so, can you share it ?

  • User Avatar
    0
    chehrhard created

    I simply not unterstand how to do.

    Wich settings files to modify ? where to change the main URL ?
    any code to add somewhere ? Url redirection ? and so on ...

    What i'm looking for is a detailled procedure how to archieve my goals ( deploy Host and Client on different servers under virtual directories) .

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @ChEhrhard,

    We don't have specific guide for this, sorry. We expect Host project to work without any changes. Angular project might need a few tweaks but we haven't tried it.

    Can you share what problem do you have with Host project ? We can start to fix it.

  • User Avatar
    0
    ismcagdas created
    Support Team

    By the way, for ASP.NET Core, you can check this document, <a class="postlink" href="https://docs.microsoft.com/en-us/aspnet/core/publishing/iis?tabs=aspnetcore2x">https://docs.microsoft.com/en-us/aspnet ... pnetcore2x</a>. You need to install <a class="postlink" href="https://aka.ms/dotnetcore-2-windowshosting">https://aka.ms/dotnetcore-2-windowshosting</a>.