narrowgauge
92 year oldTrainz veteran
One of the problems with hosting Trainz content is that .CDP is not always recognized as a valid extension. I understand that with a Windows IIs 7.0 server, a web.config file can add the needed mime types. The following is the web.config file I am using which gives a server error. It was created in Context and exported as a .XML file.
I would be most grateful if someone can pick an error in the file or better still, send me a version that works. My host is Godaddy if that makes things a bit clearer.
Peter
Code:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension=".cdp" mimeType="application/compressed" />
<mimeMap fileExtension=".txt" mimeType="text/plain" />
</staticContent>
</system.webServer>
</configuration>
I would be most grateful if someone can pick an error in the file or better still, send me a version that works. My host is Godaddy if that makes things a bit clearer.
Peter