Base solution for your next web application
Open Closed

Error on publishing on IIS #7390


User avatar
0
nathaliewehbe created

Hi,

I am trying to publish Angular project with th web host under the same route.

Default Web Site is localhost:80 and the Webhost is localhost:80/SoffaHost

ERROR:

"App": { "ServerRootAddress": "http://localhost:80/SoffaHost", "ClientRootAddress": "http://localhost:80/", "CorsOrigins": "http://localhost,http://185.187.94.224:9999", "SwaggerEndPoint": "/swagger/v1/swagger.json", "AllowAnonymousSignalRConnection": "true" }

"remoteServiceBaseUrl": "http://localhost:80/SoffaHost", "appBaseUrl": "http://localhost:80",


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    IIS Virtual Directories aren't supported with ASP.NET Core apps. An app can be hosted as a sub-application.

    https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-2.2#virtual-directories