I have developed an Unity3d 3D Walk through and published it on the Web. When i uploaded to the Linux server, it works fine; However, when i uploaded to a windows server, I have problems.
Linux Server:
http://www.mandanemedia.com/Staging/Unity3D/NUS3DWalkThrough/
Windows Server:
http://skqs.nus.edu.sg/medicallibrary3d/
I think what’s happening is that the Unity3D page is not accessible. To try it out yourself, go to this link, and you don’t get an error. However, if you go to this page, you will get an ISS error.
I’ve searched on Google to try and find a solution:
On the IIS Server, it must specify that a Unity3D file is something that is allowed to be sent over.
How to do it:
In web.config file on the home directory of IIS we need to configure the file to allow unity3d file to be loaded:
<configuration>
<system.webServer>
<staticContent>
<remove fileExtension=".unity3d" />
<mimeMap fileExtension=".unity3d" mimeType="application/vnd.unity" />
</staticContent>
</system.webServer>
</configuration>
Further Links:
- http://forum.unity3d.com/threads/14819-lots-of-customers-experience-invalid-Unity-file/page3
- Deploy Unity3D in Windows Azure
- http://developer.dynamicweb-cms.com/forum/development/adding-mime-types.aspx
And I’ve got the network admin of NUS to do this, below are screenshots of the server settings:
alt text http://www.mandanemedia.com/Staging/Unity3D/NUS3DWalkThrough/image001.png
alt text http://www.mandanemedia.com/Staging/Unity3D/NUS3DWalkThrough/image002.png
But the issue still exists. I would appreciate if anyone had any ideas on how to solve it. Thanks!
The issue was that the server is windows 2003 and IIS6, as a result this method does not work in IIS6.
Through configure IIS6 we need to use IIS Manager User Interface in windows Server 2003:
the MIME Types dialog box, enter the following MIME type:
Extension: .unity3d
MIME type: application/vnd.unity
It’s done, Good luck