开发者

JMOL pdb files not being served

开发者 https://www.devze.com 2022-12-21 11:15 出处:网络
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.

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 whi开发者_如何学Cch 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?


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)

0

精彩评论

暂无评论...
验证码 换一张
取 消