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!
Wednesday, October 06, 2010 4:50 AM