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?

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    DRPDEV created

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    So what is the problem now?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    DRPDEV created

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    What is the error?

    Can you share the HTTP request message

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi @thanhvl1@fsoft.com.vn,

    Can you provide complete steps to reproduce the problem?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    1
    thanhvl1 created

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 09, 2026, 11:56
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.