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)
-
0
Did you follow https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-3.1 ?
-
0
-
0
So what is the problem now?
-
0
I cannot login from angular site when i was hosting both of them on the IIS.
-
0
What is the error?
Can you share the HTTP request message
-
0
-
0
Hi @thanhvl1@fsoft.com.vn,
Can you provide complete steps to reproduce the problem?
-
0
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
-
0
Hi I find the problem, In a production environment you should use a trusted https certificate. Check your
.Api.Host
logs, you can see theUnable 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.
-
1
Hi @liangshiwei, Thanks for your support. This unsecured ssl cause the problem. Now I can fix it