2017.1 beata will not run on a windows 2012 server

An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was:
SyntaxError: expected expression, got ‘<’

Fourth time I built it. Memory set to 512. No compression.

http://208.109.54.155/

I really need to have this work or abandon Unity… I like it :frowning:
Rich

You’ll have to add a web.config file to your Release or Build directory (I believe it’s Build now in 2017.1) to basically tell IIS what to do with the file extensions Unity uses. I believe the only file extension you’ll find in 2017.1 for WebGL builds is .unityweb, but as I’m not 100% certain I’ve included numerous ones. This works for me running IIS on Windows 10.

Your best bet for enquiring about beta specific issues (even if in this case it’s to do with WebGL) is to post these issues in the 2017.1 beta forum.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <staticContent>
            <mimeMap fileExtension=".mem" mimeType="application/octet-stream" />
            <mimeMap fileExtension=".data" mimeType="application/octet-stream" />
            <mimeMap fileExtension=".unity3d" mimeType="application/octet-stream" />
            <mimeMap fileExtension=".memgz" mimeType="application/octet-stream" />
            <mimeMap fileExtension=".datagz" mimeType="application/octet-stream" />
            <mimeMap fileExtension=".unity3dgz" mimeType="application/octet-stream" />
            <mimeMap fileExtension=".jsgz" mimeType="application/octet-stream" />
            <mimeMap fileExtension=".unityweb" mimeType="application/octet-stream" />
        </staticContent>
    </system.webServer>
</configuration>

Thanks so much for the reply. I have found this and tried it. Didn’t work for me… I am changing servers to see if that helps…

I installed a web.config with this information and got this message now :
An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was:
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

Firefox Browser

thedarkwar.comSolved:

<?xml version="1.0" encoding="UTF-8"?>

</system.webServer>

Just needed to add the .json mimeType Line :eyes:

1 Like