Last post Apr 23, 2020 12:02 PM by mywatermelon
Apr 23, 2020 09:06 AM|mywatermelon|LINK
I have a website made by asp.net core 3.1.
It is the first time I publish it on Windows server 2019 Datacenter 1809(17763.1158).
However, it doesn't work but the IE reports ''Can’t reach this page' error on the page.
I run the .exe file in the directory of the project on the server computer. It starts a command-line and showed these:
Now listening on: http://localhost:5000
Now listening on: https://localhost:5001
Application started. Press Ctrl+C to shut down.
Hosting environment: Production
Content root path: C:\Project
I access the http://localhost:5000. All works well now.
I have not only ensured set the .NET CLR version to No Managed Code but also ensured there is an AspNetCoreModuleV2 in the module.
I doubt whether it is the problem of DNS or URL. After I set the Host Name to null to make the website only works locally, it still no works.
What's wrong with it? How can I solve this? Thank you.
PS: Here is some information with dotnet --info of the server computer
Microsoft Windows [Version 10.0.17763.1158]
(c) 2018 Microsoft Corporation. All rights reserved.
.NET Core SDK (reflecting any global.json):
OS Name: Windows
OS Version: 10.0.17763
OS Platform: Windows
Base Path: C:\Program Files\dotnet\sdk\3.1.201\
Host (useful for support):
.NET Core SDKs installed:
3.1.201 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET Core runtimes or SDKs:
Apr 23, 2020 10:29 AM|mgebhard|LINK
If I understand correctly, you successfully started the application from the command line.
You can access the access the application and the application works.
The problem is you are unable host the application in IIS. The error message means the URL is not resolving or there is a configuration problem. The community cannot see your IIS configuration. I recommend verifying DNS is correct, your site bindings
are correct, and SSL is setup correctly. Please see the standard ASP.NET Core deployment troubleshooting for a list of items to check.
Apr 23, 2020 12:02 PM|mywatermelon|LINK
Problem solved. The server computer has blocked the 80 port.