views:

20

answers:

1

I am building an asp.net mvc web site which needs to host some JMOL content.

JMOL is an open-source Java viewer for chemical structures in 3D.

http://jmol.sourceforge.net/

The problem is that when I host the JMOL files which have been created for this site on IIS, I get errors when JMOL attempts to load the .pdb files.

e.g. java.io.IOException: Server returned HTTP response code: 500 for URL: ../amylase.pdb

Now my best guess is that because this is Microsoft and an ASP.NET/MVC site it's preventing the pdb files being served. Question is other than change the extension is there a way to fix this?

A: 

It turns out IIS didn't know how to serve the .pdb extension so I added a mime-type for it (using application/octet-stream as the mime type)

jonhilt