Has a website based on CMS and Commerce.
Via Visual Studio it works as intended, but after a Publish and then uploaded to a Windows Server with IIS, there will be problems.
Almost all Blocks are not rendered out, there are only empty <div>.
Any suggestions on why this might be the case?
Do you need to see any code?
Latest CMS and Commerce, Windows Server 2019 with IIS 10.
Any errors in logs?
And which publishing profile you are using while publishing the code?
Same database in both environments?
Or different (empty) database after publish?
As a thought, have you checked to see whether the .cshtml views for the missing blocks are in the published site? Generally where I've seen problems like this where something appears locally but not when published, it's come down to files not being published.
It may also be useful to set up a local site pointed to the published version so you can establish whether it's an issue with the server or the publish.