"Unable to cast object of type 'System.String' to type 'System.Byte[]'"

Failed to deploy an application to Appeon Server for .NET which runs in an uncertified-Appeon-language-environment, for example, Turkish environment. The "Unable to cast object of type 'System.String' to type 'System.Byte[]'" error is reported in Appeon Deployment log.


Step 1: Find the following command line in the web.config file at C:\Inetpub\wwwroot\appeon\AEM and then add the "culture="en-US"" attribute.

<globalization requestEncoding="utf-8" responseEncoding="utf-8"
  uiCulture="auto" culture="en-US"/>

Step 2: Save the file changes and restart IIS to make the modification take effect.

Step 3: Deploy the application again.