Last post Dec 27, 2020 05:00 PM by roguenidb
Dec 26, 2020 09:25 PM|roguenidb|LINK
I am deploying to my hosting compnay the code and site works perfect off line while connected to their database but when i publish the logs are telling me the following with no real detal. Its a .net 5 web api project being published to a third party host
Now listening on: http://127.0.0.1:40175
Application started. Press Ctrl+C to shut down.
Hosting environment: Production
Content root path: C:\home\site\wwwroot
Application is shutting down...
I got the above logs by this line
<aspNetCore processPath=".\MSFSAddonsHub.WebApi.exe" stdoutLogEnabled="true" stdoutLogFile=".\logs\text.txt" />
Dec 27, 2020 08:18 AM|DA924|LINK
I am deploying to my hosting compnay the code and site works perfect off line while connected to their database.
Well did you try publishing to your development computer to local IIS to see that it works?
Dec 27, 2020 02:11 PM|mgebhard|LINK
I think part of the confusing is there are no logs. I'm guessing you did not write or configure logging for the environment published on the host. You are only seeing the default logs; application start and stop.
I think you'll be interested in reading the official documentation.
Dec 27, 2020 05:00 PM|roguenidb|LINK
I have a ILoogger defined but didnt know about the host method will look into that but I found my reason funny enough it was cause I had know ssl installed on the hosting side.