Web Player - Failed to Download Data

Discussion in 'Unity Support' started by kinetiknz, Sep 13, 2011.

  1. kinetiknz

    kinetiknz

    New Member

    Joined:
    May 5, 2010
    Messages:
    173
    Hi there,
    I am hosting a unity file on godaddy.com (Windows servers) and I can't get any Unity content to be useable.

    Firefox: loads page and instantly says: "Failed to download datafile"
    Firefox: loads the page and displays the Unity logo, the progress bar does nothing and no error occurs.
    Internet Explorer: invalid data file, data is corrupt or not a unity file.

    I'm hoping that whatever the problem is will fix all three at once!

    The HTML seems to be looking in the right place and I can't think of any other things to change.
    Does anyone know of a proper cause of the problem??

    Thanks

    Here is the current link:
    http://www.vistele.com/Webplayer/webplayer.html
    Last edited: Sep 13, 2011
  2. vakis

    vakis

    New Member

    Joined:
    Aug 29, 2011
    Messages:
    1
    did you find the solution? i have the same issue
  3. kinetiknz

    kinetiknz

    New Member

    Joined:
    May 5, 2010
    Messages:
    173
    Hey yeah I did, you need to create a file in the root of your site (and add some code to it) that adds the unity file type association for the server. i know this is very vague, but after googling it, I found a post which mentioned it, created the file, copy pasted the content and it worked instantly. Didn't have to contact godaddy, which is lucky because their help centre is a copy/paste centre. I would get it for you but my dreamweaver license just ended :/

    I'll post the file when im home, so u can just DL, then UL and it should work. Are you hosted on Windows? Don't think it will work on Linux
    Last edited: Sep 26, 2011
  4. Dreamora

    Dreamora

    Member

    Joined:
    Apr 5, 2008
    Messages:
    26,586
    What you need to do and what he did was adding the custom file required to define own MIME Types.
    Microsoft IIS (the webserver used on windows servers and required for ASP.NET) does not handle unknown MIME types like Apache does and so it just fails basically with Unity content.

    There are a few threads on it where the whole thing is more or less listed indetailed form if I recall right
  5. rickb123

    rickb123

    Member

    Joined:
    Jun 27, 2011
    Messages:
    1
    Hi, I had similar problem but my issue was that it will load in firefox but not in internet explorer 8 - crashing everytime.

    The funny thing is that it works on my two other machines i mean loading in IE 8 without crashing. Now i am checking the antivirus that could prevent from loading my player.
  6. fiddystorms

    fiddystorms

    New Member

    Joined:
    Mar 24, 2012
    Messages:
    7
    Why is it that there are no solutions to what seems to be a very common error? Same error "failed to download data file"... changed the MIME settings by adding application/vnd.unity as the MIME type and both .unity3d .unityweb as MIME extensions. No change, still getting error.

    This error keeps popping up all over this forum, but there hasn't been one solution that has been confirmed to actually solve the problem.
  7. kinetiknz

    kinetiknz

    New Member

    Joined:
    May 5, 2010
    Messages:
    173
    Hey, there is a fix, it's been around for years.
    Change the .unity3d MIME type. Some apache servers don't understand what a unity file is. Most hosts allow you to do this manually, or you could just ask them to do it. I'm with webhostinghub.com and can do it from the control panel, though it was setup already. Also Linux hosts are fine hosting unity content. There are rumours around that you need a windows host, but it's not true.

    I would triple check the grammer in the MIME type, and then try someone else's computer? Not sure if the MIME doesn't fix it.
    Last edited: Mar 24, 2012
  8. vgabex

    vgabex

    New Member

    Joined:
    May 8, 2012
    Messages:
    1
    Try renaming "WebPlayer.unity3d" to "webplayer.unity3d" + change it also in the html code.
  9. steel

    steel

    New Member

    Joined:
    Nov 20, 2012
    Messages:
    5
    @kinetikinz : hi ,what should be the file name and the contents inside it? i uploaded files through server
  10. FilipeGevaerd

    FilipeGevaerd

    New Member

    Joined:
    Mar 17, 2013
    Messages:
    1
    Hey everyone, I had the same problem using the IIS 7.5.
    I resolve it, adding the MIME Type.

    Folow these steps:

    1. Double-Click MIM Types in your application folder.
    2. Click Add, at the Actions menu.
    3. Fill the "File name extension:" with ".unity3d".
    4. Type "application/unity3d" at "MIME type:" field.
    5. Click OK.
    6. Restart your site on ISS.

    This steps solve the problem to me.

    See you!
  11. LEO MICHEL

    LEO MICHEL

    New Member

    Joined:
    Feb 20, 2013
    Messages:
    5
    The solution for me was to put a custom web.config in the same folder of the "*.unity3d" files

    you can put thats lines on a "*.txt" and rename it after to "web.config"

    <configuration>
    <system.webServer>
    <staticContent>
    <mimeMap fileExtension=".unity3d" mimeType="TYPE/SUBTYPE" />
    </staticContent>
    </system.webServer>
    </configuration>

    I'm with a Godaddy hosting on a Windows server (ASP Apache)
    Last edited: May 27, 2013
  12. GD.Darren

    GD.Darren

    Member

    Joined:
    Jan 12, 2013
    Messages:
    47
    Thanks LEO MICHEL, your solution worked great.

    TO SOLVE IT all you have to do is copy paste what LEO MICHEL wrote under the </body> of the html file!
  13. LEO MICHEL

    LEO MICHEL

    New Member

    Joined:
    Feb 20, 2013
    Messages:
    5
    Thats true good to !o) the solve of GD.Darren,
    but dont forget if you do this, you need to rewrote the lines eatch time after the html file was generated. Peraps with the "web.config" you dont need to.
    Last edited: May 27, 2013
  14. 101chris

    101chris

    New Member

    Joined:
    Jun 13, 2013
    Messages:
    2
    thanks that was driving me nuts. FF didnt even show me an error, just sat there at the unity screen.
  15. renman3000

    renman3000

    Member

    Joined:
    Nov 7, 2011
    Messages:
    4,925
    Hi guys,
    I am following along with this thread and I can not get my player to not show an error. (Failed to Download...)

    1. I pasted in @LEO MICHEL's code into the HTML body.
    2. I have uploaded the HTML and the UnityObject.js to my public root folder.
    3. I renamed the HTML file to index.html

    I still get the "Failed to Download Data" error.



    I am unsure what to do.
  16. Linthu

    Linthu

    New Member

    Joined:
    Aug 28, 2013
    Messages:
    1
    Thanks FilipeGevaerd, this solved my problem.

    On a side note - we were only seeing this issue on some machines. So, even if you guys are not seeing this issue, you may want to make sure the mime type is set up in IIS as described below.

    Anyway thanks again!

  17. siddhu446

    siddhu446

    New Member

    Joined:
    Dec 20, 2013
    Messages:
    1
    :D thankyou sooooooooooooooooooo much
  18. EricO64

    EricO64

    New Member

    Joined:
    Feb 6, 2014
    Messages:
    1
    My sentiments exactly. Until I entered that little setting in Web Config and things finally started working, I thought I was going to go nuts!!
  19. sreveloc

    sreveloc

    New Member

    Joined:
    May 9, 2013
    Messages:
    1
    I have this problem too trying to add my game to Facebook (with unity integration you just only need the .unity3d file). And i solved just adding the MIME Type to the iis in my server.
    Thank you.
  20. Goodzilaaa

    Goodzilaaa

    New Member

    Joined:
    Mar 19, 2014
    Messages:
    1
    Hi guys
    I was playing one of unity plays (cs_portable.net), I played it many times but now it is giving me the same error
    You gave many answers but I didnt understand
    For doing your steps I went to the unity web player folder, then I changed the MIME type to .txt, next I copied the LEO MICHEL s text in to it, then it didnt work
    Where I did wrong?
    Tanks for your answers
  21. andywarz23

    andywarz23

    New Member

    Joined:
    May 14, 2014
    Messages:
    1
    how do you do that
  22. spirit13

    spirit13

    Member

    Joined:
    Jun 5, 2014
    Messages:
    2
    it use to say erroe launching unity player now its saying failed to download data file so what should i do now