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??
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
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
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.
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.
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.
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.
thankyou sooooooooooooooooooo much[quote=LEO MICHEL, post: 1238361]
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”
I’m with a Godaddy hosting on a Windows server (ASP Apache)
[/quote]
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.
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