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

HTTP Error 404 When publish Angular 7 + Core on IIS server #7331


User avatar
0
flavio created

Hi all, Im having a problem when publish following this tutorial : https://docs.aspnetzero.com/documents/aspnet-core-angular/latest/Deployment-Angular-Publish-IIS

When I publish , Im facing this error when access http: AbpUserConfiguration/GetAll?d=, NOT FOUND. I dont know if this is related to configuration of APP before publish, or structure of folders in SERVER. I also need a STEP_BY-STEP working....

Thanks in advance.


7 Answer(s)
  • User Avatar
    0
    alper created
    Support Team

    are you adding it as a new website?

  • User Avatar
    0
    flavio created

    Yes, alson I ran a test, publishing directly from visual studio to server, using CORE and ANGULAR project, and its running perfectly. I realized when I publish using visual studio 2017, the folder DIST is not there. When I run ng build --prod , the folder is created, but copy and paste towards server , is not working ... Im sure theres something wrong in publish proccess, and need a step by step to get a tip about the procedure... Its possible to schedule a CHAT, or by phone, in order to learn the correct proccess of publish? Thanks in advance...

  • User Avatar
    0
    flavio created

    Even when I change the appconfig.production.json, everytime we have different problems ... ERROR SyntaxError: Unexpected token p in JSON at position 325 at JSON.parse (<anonymous>) at XMLHttpRequest.i.onreadystatechange [as __zone_symbol__ON_PROPERTYreadystatechange] (main.c1744d7….js:1) It seems when JQuery try to use PARSE, raise this error, but maybe its hiding the root cause ... Id like to enjoy with technical stuff to solve this issue ...

  • User Avatar
    0
    flavio created

    a conference or chat is necessary... I cant imagine why publishing proccess should be so hard...

  • User Avatar
    0
    flavio created

    When I downloaded to App, the structure of folders are separated from angular and CORE. In the root , we have "angular" and "aspnet-core" folders... When publish them, we need to publish separated as well... Theres some missing procedure here , I think it could be the cause, but needs to be confirmed by tecnical stuff...

  • User Avatar
    0
    alper created
    Support Team

    Hi,

    I hope you successfully published server side (aspnet-core).

    For Angular; Try deleting the node_modules directory and run the yarn command. Also try run: npm run ng-high-memory -- build --prod instead of ng build --prod If that doesn't work try ng build --configuration=production.

  • User Avatar
    0
    flavio created

    Hi, I found the problem. The App didnt have permissions to create a log file, then the app crashed before initialize, hiding the real problem. Now it seems OK, ate least , for a while... Thanks ....