I have success with my own generated height map and orthophoto to view in Cesium.
The development machine was using Apache as the web server.
To serve out the *.terrain files, this was added to .htaccess file.
Header set Content-Disposition attachment
Header set Content-Encoding: gzip
However for deployment, the client’s server requires using IIS as the web server. The error that appear are
An error occurred in “E”: Failed to obtain terrain tile X: 0 Y: 0 Level: 0.
An error occurred in “E”: Failed to obtain terrain tile X: 1 Y: 0 Level: 0.
I have tried the following:
add “” to web.config file
use " " to web.config as specified in cesium download.
I believe it an issue of web.config to specify what to do with the terrain files to be similiar to .htaccess.
Any pointers is appreciated.