# Web deployment - what am I doing wrong?

**URL:** <https://discussions.unity.com/t/web-deployment-what-am-i-doing-wrong/398909>\
**Category:** Build & Deployment\
**Created:** [September 30, 2009, 9:25am UTC](https://discussions.unity.com/t/web-deployment-what-am-i-doing-wrong/398909 "2009-09-30T09:25:42Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon\_18768439](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@anon\_18768439](https://discussions.unity.com/u/anon_18768439)\
**Post date:** [September 30, 2009, 9:25am UTC](https://discussions.unity.com/t/web-deployment-what-am-i-doing-wrong/398909/1 "2009-09-30T09:25:42Z")

</div>

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](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](http://www.vonknut.com/blinded/islandDemo.html)

what am I doing wrong?

Thanks

---

<div class="post-metadata">

**Author:** ![MikeHergaarden](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/mikehergaarden/32/383315_2.png) [@MikeHergaarden](https://discussions.unity.com/u/MikeHergaarden)\
**Post date:** [September 30, 2009, 10:26am UTC](https://discussions.unity.com/t/web-deployment-what-am-i-doing-wrong/398909/2 "2009-09-30T10:26:52Z")

</div>

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](http://www.vonknut.com/blinded/blinded_prototype.unity3d)

But its not there.

---

<div class="post-metadata">

**Author:** ![anon\_18768439](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@anon\_18768439](https://discussions.unity.com/u/anon_18768439)\
**Post date:** [September 30, 2009, 12:26pm UTC](https://discussions.unity.com/t/web-deployment-what-am-i-doing-wrong/398909/3 "2009-09-30T12:26:07Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![anon\_18768439](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@anon\_18768439](https://discussions.unity.com/u/anon_18768439)\
**Post date:** [September 30, 2009, 12:38pm UTC](https://discussions.unity.com/t/web-deployment-what-am-i-doing-wrong/398909/4 "2009-09-30T12:38:56Z")

</div>

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](http://www.vonknut.com/blinded/minimal.html)

---

<div class="post-metadata">

**Author:** ![MikeHergaarden](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/mikehergaarden/32/383315_2.png) [@MikeHergaarden](https://discussions.unity.com/u/MikeHergaarden)\
**Post date:** [September 30, 2009, 12:41pm UTC](https://discussions.unity.com/t/web-deployment-what-am-i-doing-wrong/398909/5 "2009-09-30T12:41:30Z")

</div>

Same thing, there is no “[http://www.vonknut.com/blinded/minimal.unity3d](http://www.vonknut.com/blinded/minimal.unity3d)”.

Looks like your CMS doesn’t support uploading .unity3d files?

---

<div class="post-metadata">

**Author:** ![andeeeee](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@andeeeee](https://discussions.unity.com/u/andeeeee)\
**Post date:** [September 30, 2009, 2:59pm UTC](https://discussions.unity.com/t/web-deployment-what-am-i-doing-wrong/398909/6 "2009-09-30T14:59:53Z")

</div>

Is the Unity web player file in the same folder as the HTML page?

---

<div class="post-metadata">

**Author:** ![anon\_85768832](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@anon\_85768832](https://discussions.unity.com/u/anon_85768832)\
**Post date:** [September 30, 2009, 6:29pm UTC](https://discussions.unity.com/t/web-deployment-what-am-i-doing-wrong/398909/7 "2009-09-30T18:29:10Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![anon\_63383745](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@anon\_63383745](https://discussions.unity.com/u/anon_63383745)\
**Post date:** [October 3, 2009, 12:06am UTC](https://discussions.unity.com/t/web-deployment-what-am-i-doing-wrong/398909/8 "2009-10-03T00:06:30Z")

</div>

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:

```auto
<?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!

---

<div class="post-metadata">

**Author:** ![anon\_85768832](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@anon\_85768832](https://discussions.unity.com/u/anon_85768832)\
**Post date:** [October 5, 2009, 11:43pm UTC](https://discussions.unity.com/t/web-deployment-what-am-i-doing-wrong/398909/9 "2009-10-05T23:43:48Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Dreamora](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/dreamora/32/91058_2.png) [@Dreamora](https://discussions.unity.com/u/Dreamora)\
**Post date:** [October 6, 2009, 1:32am UTC](https://discussions.unity.com/t/web-deployment-what-am-i-doing-wrong/398909/10 "2009-10-06T01:32:09Z")

</div>

> [@""](#):
>
> 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.

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](http://www.eggheadcafe.com/aspnet/how-to/2223393/how-to-add-mime-types-wit.aspx)

---

<div class="post-metadata">

**Author:** ![anon\_63383745](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@anon\_63383745](https://discussions.unity.com/u/anon_63383745)\
**Post date:** [October 6, 2009, 1:44am UTC](https://discussions.unity.com/t/web-deployment-what-am-i-doing-wrong/398909/11 "2009-10-06T01:44:37Z")

</div>

Awesome, thank you guys so much! Here’s the code that ended up working:

```auto
<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.

---

<div class="post-metadata">

**Author:** ![anon\_21097770](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@anon\_21097770](https://discussions.unity.com/u/anon_21097770)\
**Post date:** [February 4, 2011, 8:11pm UTC](https://discussions.unity.com/t/web-deployment-what-am-i-doing-wrong/398909/12 "2011-02-04T20:11:17Z")

</div>

Thank you this helped.

> [@anon\_63383745](#):
>
> Awesome, thank you guys so much! Here’s the code that ended up working:
> 
> ```auto
> <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.
