Error after re-deploying on a different server

Neville Gotla asked on March 20, 2017 05:33

We just deployed the backup of our development environment to a different machine, and we are getting the following error:

    Event type: Error
Event time: 3/20/2017 3:28:58 AM
Source: MacroResolver
Event code: CHECKSECURITY
User ID: 53
User name: administrator
IP address: ::1
Description: Security check of the expression 'maxSideSize = 1366;
width = CurrentDevice.ScreenPixelsWidth;
height = CurrentDevice.ScreenPixelsHeight;if (!CurrentDevice.IsMobile
|| ((width > maxSideSize)||(height > maxSideSize))){
return false;
}return true;|(user)administrator|(hash)0d3601335cc9571e4bf45f374c307e08f8eb7b049c88804d5fa4eb92dbf67d75' didn't pass. The expression was signed by user ''. Remove the signature and re-save the expression by a user with proper permissions.
Machine name: SCENTRE-NEW
Event URL: /kentico
URL referrer:
User agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.110 Safari/537.36
Export event details

Can anyone please direct us to a solution? Thanks.

Recent Answers


Roman Hutnyk answered on March 20, 2017 07:52

This macro was signed by administrator account, which seems to be disabled or even does not exist in new instance.

If previous statement is not true you might need to check if CMSHashStringSalt setting exists in web.config file and it is the same on both instances.

Whatever your case is, most likely you'll need to re-sign all macro in your system by going to System -> Macros -> Signatures and update macro signature. This process will take a while for a large app.

3 votesVote for this answer Mark as a Correct answer

Anton Grekhovodov answered on March 20, 2017 10:13

Read here how to work with macro signatures and how to resolve your problem

1 votesVote for this answer Mark as a Correct answer

vasu yerramsetti answered on March 20, 2017 11:54 (last edited on March 20, 2017 11:55)

Re-signing macros from CMSDesk and check it.

Reference URL: https://docs.kentico.com/k8/macro-expressions/macro-troubleshooting/working-with-macro-signatures#Workingwithmacrosignatures-Re-signingmacros

What is the kentico version? What is your deployment environment?

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.