x


Godaddy windows hosting + unity webplayer

Hi,

My website is hosted with http://godaddy.com (windows.) I have upgraded my hosting account to IIS7 (from 6 I think it was.) I have followed a tutorial to get a simple game up and running and I've uploaded it to:

http://www.kuneko.com/unity/SpaceShooter.html

There's also the SpaceShooter.unity3d in the same folder.

I've read that I need to create a web.config file to allow the unity3d file to load. All I'm getting at the moment is a 500 - Internal server error. This is in the same folder as my game, putting it at my root folder causes all of my pages to display the error message. This is my web.config file:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.web>
     <staticContent>
        <mimeMap fileExtension=".unity3d" mimeType="application/vnd.unity" />
     </staticContent>
  </system.web>
</configuration>

Could someone please help me and let me know what I'm missing?

Thanks,

John

more ▼

asked Apr 04 at 09:32 AM

John 5\'s gravatar image

John 5
38 1 1 6

(comments are locked)
10|3000 characters needed characters left
 moderation talk

1 answer:

Your config file is close, but needs one change: it's system.webServer.

<configuration>
    <system.webServer>
        <staticContent>
            <mimeMap fileExtension=".unity3d" mimeType="application/vnd.unity" />
     </staticContent>
    </system.webServer>
</configuration> 

From How to add Mime Types with IIS.

more ▼

answered Apr 04 at 01:25 PM

Cyclops\'s gravatar image

John Crawford
6.1k 29 60 114

@John, do also remember to upvote any good answers you find here in UnityAnswers (for instance, this one :) and/or click the checkbox for the best answer to any of your questions.

Apr 04 at 01:32 PM Cyclops

Thanks :)

I have the web.config file in the same folder as the .unity3d file and the .html file of my game, and also in my root folder. My site is still working which is an improvement from earlier but I still get the 500 - Internal error when I load the http://www.kuneko.com/unity/spaceshooter.html.

Is there anything else I might have overlooked?

Thanks again :)

Apr 04 at 02:30 PM John 5

Ah it's okay now and working. Maybe I didn't give it enough time to refresh or something...

Thank you very much, Cyclops :)

Apr 04 at 02:36 PM John 5
(comments are locked)
10|3000 characters needed characters left
 moderation talk
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x574
x3

Asked: Apr 04 at 09:32 AM

Seen: 1504 times

Last Updated: Apr 04 at 09:32 AM

powered by Qato - Enterprise Q&A