I have made a nice little game that works perfectly if I run it locally - but when I upload it to my ftp an drun it on the net I only get to a loadbar screen:
http://www.vonknut.com/blinded/blinded_prototype.html
Have have made sure to upload both the html and the unity3d file.
I also tried to upload the island demo, but got same result:
http://www.vonknut.com/blinded/islandDemo.html
what am I doing wrong?
Thanks
You did not upload the .unity3d file…or used a wrong name.
The html links to the file: http://www.vonknut.com/blinded/blinded_prototype.unity3d
But its not there.
wierd
I did upload it - and I can see it right there in the content mangement system!
hmm, OK, when I click on it I get an error in th CMS:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 17529582 bytes) in C:\Program Files\Parallels\Plesk\admin\plib\class.rFastTemplate.php on line 806
-so I guess it is a question of size?
Whait no
I just uploaded a 90kb test build called minimal, I don’t get the error, but still the same result.
http://www.vonknut.com/blinded/minimal.html
Same thing, there is no “http://www.vonknut.com/blinded/minimal.unity3d”.
Looks like your CMS doesn’t support uploading .unity3d files?
Is the Unity web player file in the same folder as the HTML page?
Are you using a M.soft IIS web servery by any chance? If so then do a forum search on “IIS” and I’m sure you’ll turn up a few threads where this is a web server setting that somehow requires a bit extra fiddling. I don’t recall the details but know that searching for it should prove fruitful (if you’re using IIS).
I am having a similar problem to many other people here. GoDaddy is my hosting service. I have IIS 7.0 and a Windows server on there. I have been told I need to make a web.config file to add the unity3d extension so the file can be accessed properly. However, I do not know what the actual XML is that I need to write in order to add the extension and MIME type. I have scoured the forums and the internets and I’ve come close, but only gotten so far:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
</system.web>
</configuration>
I just don’t know what goes in the middle there! I know it has to do with application/unity3d or something similar, but I don’t know the whole syntax of the XML.
There is no way to configure this on GoDaddy’s site. I even called them and they said to write the web.config file (they didn’t know the syntax either).
Thanks for your help!
I don’t know what GoDaddy is expecting there, they don’t offer any specific documentation? In general you want to associate *.unity3d files with the mime type application/vnd.unity.
Sounds like a good idea to switch the host asap if you are with a host who does not even have knowledge on their own product and technology used.
Here is a nice small article that should give you all you need: http://www.eggheadcafe.com/aspnet/how-to/2223393/how-to-add-mime-types-wit.aspx
Awesome, thank you guys so much! Here’s the code that ended up working:
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension=".unity3d" mimeType="application/vnd.unity" />
</staticContent>
</system.webServer>
</configuration>
For those who may have the same problem: this is in a web.config file in the directory of the Unity file I am running.
Woo, now I can sleep easy tonight. Thanks again.