CXML and DeepZoom on Azure

I have been migrating my sites to Azure over the last month. The last couple of sites to go were the sample sites for PivotViewer Lessons. In doing so I also moved over a CXML collection of the MIX 10 videos. During the migration  I realized that the MIME mappings for DeepZoom and CXML needed to be added to the site. After a quick check, I found that the Azure portal does not expose a way to accomplish this. So it was time to work on Plan B.

The end solution was rather simple, but it varies from some of the previous discussions. On a .NET website, you can add MIME mappings into a web.config. Since all Azure websites support .NET for the collection it was just a matter of adding a web.config to the site with the appropriate mappings. Below is the final web.config that I added to get the collection working.

      <compilation debug="true" targetFramework="4.0" />
        <mimeMap fileExtension=".cxml" mimeType="text/xml"/>
        <mimeMap fileExtension=".dzi" mimeType="text/xml"/>
        <mimeMap fileExtension=".dzc" mimeType="text/xml"/>

Now with those changes done, the MIX 10 CXML collection is once again up. Which means the live version of PivotViewer Lessons is also once again working. Not to mention it has been moved to Azure as well. Thanks for the friendly reminders when the collection went down. Hopefully we won’t have that issue any longer.

MIX 10 Collection :

Live PivotViewer Lessons :

PivotViewer Lessons CodePlex :


No responses yet

Leave a Reply

Your email address will not be published. Required fields are marked *

.NET development is constantly changing and expanding. With over 20 years in the industry, I have had the opportunity to see this the technology and the community grow and shift. To get weekly updates and insights into the world of .NET, development, and career advancement click the subscribe button.