Base solution for your next web application
Open Closed

Publish Deployment #10021


User avatar
0
WirelessDynamics created

Dear All,

We need to deploy Latest Version Of Asp Zero .NETCore (two project with Angluar) on IIS We recieve the following error:

Error?statusCode=404

Is there a certain guide on how to Deploy it?

Thanks, Mina.


8 Answer(s)
  • User Avatar
    0
    zony created
    Support Team

    Hi WirelessDynamics, The problem may be related to routing, please read this article: https://medium.com/angular-deployment-on-iis/angular-6-production-on-iis-manual-url-refresh-page-error- 88f64fb8d5f4

  • User Avatar
    0
    WirelessDynamics created

    Hello Zony,

    The issue is in the publish of the ASP.net core not in the angular, please advise.

    Thanks, Mina

  • User Avatar
    0
    WirelessDynamics created

    Any feedback regarding this case?

    Thanks, Mina.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @WirelessDynamics

    Sorry for the delay.

    If your project is ASP.NET Core & Angular, you can follow https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Deployment-Angular-Publish-IIS

    If it is ASP.NET Core & JQuery, you can follow https://docs.aspnetzero.com/en/aspnet-core-mvc/latest/Deployment-Mvc-Core-IIS

    1. If you already followed these, could you share the steps you have followed ?
    2. Is your app accessible on the internet ? If so, could you share its URL with us ?

    Thanks,

  • User Avatar
    0
    WirelessDynamics created

    Dear ismcagdas

    It is ASP.NET Core & Angular project and we followed exactly what is the link:

    the content of the webconfig is as below:

    " <?xml version="1.0" encoding="utf-8"?> <configuration> <location path="." inheritInChildApplications="false"> <system.webServer> <handlers> <add name="aspNetCore" path="" verb="" modules="AspNetCoreModuleV2" resourceType="Unspecified" /> </handlers> <aspNetCore processPath="dotnet" arguments=".\WDx_Asset_Tracking.Web.Host.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" /> </system.webServer> </location> </configuration> <!--ProjectGuid: 9FC37C62-2105-4D32-9724-7323B959504B-->

    "

    do you see something wrong, can you send a sample webconfig?

    Thanks, Mina.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    web.config seems fine. I think you didn't post entire content of it. Can you access yourwebsite.com/swagger URL ? If not, could you send your app's public URL to [email protected] ?

    Thanks,

  • User Avatar
    0
    WirelessDynamics created

    Hi,

    I can access the swagger in the debug mode only but not on the IIS, My app is not published online. when try to access swagger on IIS , we get the internal server error as attached pic.

    Thanks, Mina.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Could you change Index action of HomeController in the Host project as shown below;

    [DisableAuditing]
    public IActionResult Index()
    {
        return Redirect("/index.html");
    }
    

    Thanks,