Our monthly Virtual Happy Hour is happening this week, Fri Feb 23!

Try our conversational search powered by Generative AI!

Blocks are not rendered on server, only in local environment

Vote:
 

Hi.

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. 

#228001
Sep 17, 2020 13:29
Vote:
 

Hi,

Any errors in logs?

And which publishing profile you are using while publishing the code?

#228002
Sep 17, 2020 13:58
Vote:
 

Same database in both environments?

Or different (empty) database after publish?

#228006
Sep 17, 2020 14:39
Vote:
 

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.

#228046
Sep 18, 2020 7:32
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.