Open Closed

Abp Ver 2.6.2, Error when hosting on IIS 8 #144


User avatar
0
DRPDEV created

Hi Support Team,

I have been generated an abp solution with Separated Identity Server. It worked well when launching from VS 2019, but when i tried to hosting all project (Indentity & Api Host) in IIS 8, it did'nt work. When i login from the front end, it returned the page as below

And when i refresh this page, it return to the home page as below

Is there any configuration that i missed when hosting them into IIS?


10 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Did you follow https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-3.1 ?

  • User Avatar
    0
    DRPDEV created

    I don't think that 's a problem with hosting Identity Server, because it work well

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    So what is the problem now?

  • User Avatar
    0
    DRPDEV created

    I cannot login from angular site when i was hosting both of them on the IIS.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    What is the error?

    Can you share the HTTP request message

  • User Avatar
    0
    thanhvl1 created

    @DRPDEV: you've got the same my issue. And I posted to another thread but still not resolve https://support.abp.io/QA/Questions/72/Angular-UI-Administration-menus-are-not-showed-abp-version-is-230

    @liangshiwei: Can you refer to my link above to check ? I provided full of screenshots of the problem

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi @thanhvl1@fsoft.com.vn,

    Can you provide complete steps to reproduce the problem?

  • User Avatar
    0
    thanhvl1 created

    Hi @liangshiwei,

    the complete dteps are publish IdentityServer project, publish *.Host project, puslish angular project and then deploy all to 1 server with IIS, configure connection string then browse. Its the common basic steps and I know that. and @DRPDEV got the same problem

    If you can check, I will send the package privately to you for checking

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi I find the problem, In a production environment you should use a trusted https certificate. Check your .Api.Host logs, you can see the Unable to obtain configuration from: xxx error message.

    If your don't have any https certificate, you can use the development certificate provided by ASP.NET Core in IIS :

    Open your browser and navigate to https://localhost :

    Now, it's works fine.

  • User Avatar
    1
    thanhvl1 created

    Hi @liangshiwei, Thanks for your support. This unsecured ssl cause the problem. Now I can fix it

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09