Unity Community


Results 1 to 20 of 20

  1. Posts
    173

    Web Player - Failed to Download Data

    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 by kinetiknz; 09-13-2011 at 12:15 AM.


  2. Posts
    1
    did you find the solution? i have the same issue


  3. Posts
    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 by kinetiknz; 09-26-2011 at 01:29 PM.


  4. Location
    Zürich, Switzerland
    Posts
    26,572
    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. Location
    Montreal, Canada
    Posts
    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. Posts
    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. Posts
    173
    Quote Originally Posted by fiddystorms View Post
    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.
    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 by kinetiknz; 03-24-2012 at 03:36 PM.


  8. Posts
    1
    Try renaming "WebPlayer.unity3d" to "webplayer.unity3d" + change it also in the html code.


  9. Posts
    5
    @kinetikinz : hi ,what should be the file name and the contents inside it? i uploaded files through server


  10. Posts
    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. Location
    QUEBEC
    Posts
    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 by LEO MICHEL; 05-27-2013 at 01:53 PM.


  12. Location
    Malta
    Posts
    45
    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. Location
    QUEBEC
    Posts
    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 by LEO MICHEL; 05-27-2013 at 02:20 PM.


  14. Posts
    2
    thanks that was driving me nuts. FF didnt even show me an error, just sat there at the unity screen.


  15. Location
    Toronto, Canada
    Posts
    4,708
    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. Posts
    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!

    Quote Originally Posted by FilipeGevaerd View Post
    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!


  17. Posts
    1

    thankkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkyouuuuuuuuuu uuuuu so much boss

    thankyou sooooooooooooooooooo much
    Quote Originally Posted by LEO MICHEL View Post
    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)


  18. Posts
    1
    Quote Originally Posted by siddhu446 View Post
    thankyou sooooooooooooooooooo much
    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. Posts
    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. Posts
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •