Publishing a DeepZoom project to IIS

I’ve just been helping a colleague work out how to publish their Silverlight DeepZoom project to their local IIS instance. Went through the Publish settings in VS2010, published, connected to it via IE and… ah.

No Images.

OK, no worries, let’s copy the files from the ClientBin folder across that weren’t published… Hmmm, still no joy… Seems to be just the zoom images that aren’t there… Ok, how about trying to access those files..

You get this error when you attempt to access the .dzc file directly:

HTTP Error 404.3 - Not Found

The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

So, a MIME map eh? A little bit of Googling later and we get the following types to setup in IIS:

Extension

MIME Type

.dzi

text/xml

.dzc

text/xml

Set them up and refresh the page in IE, aaaaand - Huzzah! We’re in business!

Print | posted @ Wednesday, October 6, 2010 4:50 AM

Comments on this entry:

No comments posted yet.

Post A Comment
Title:
Name:
Email:
Comment:
Verification: