How to publish .net Core Website?

I want to develop new site using .NET Core. At this moment, I use shared hosting. My previous project using .net 4.5 and it is running perfectly on their server.

Now, when I deploy .net Core on their hosting environment. I have publish and wwwroot as well as config.json and some other json files. When I point IIS to the wwwroot folder I get:

502 - Web server received an invalid response while acting as a gateway or proxy server.

Please help!

Thank you