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.
<configuration> <system.web> <compilation debug="true" targetFramework="4.0" /> </system.web> <system.webServer> <staticContent> <mimeMap fileExtension=".cxml" mimeType="text/xml"/> <mimeMap fileExtension=".dzi" mimeType="text/xml"/> <mimeMap fileExtension=".dzc" mimeType="text/xml"/> </staticContent> </system.webServer> </configuration>
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 : http://labs.championds.com/MIX10/MIX10Collection.cxml
Live PivotViewer Lessons : http://pivotviewer.championds.com
PivotViewer Lessons CodePlex : http://pivotviewerlessons.codeplex.com