none
How do I host deep zoom on my own server?

    Question

  • I've created a deep zoom image in Deep Zoom Composer and have an application that renders the dz image in a MultiScaleImage with no problem when the images are on the local machine. Now I want to host the same dz image on my web server. I thought it was as simple as moving the deep zoom files to the remote location and changing the MultiScaleImage's Source parameter to the new URL, but that's not working -- the MultiScaleImage is not loading the source. What else do I have to do to host this deep zoom remotely?

    XAML:

    <MultiScaleImage x:Name='dzMap'Opacity="0.5" UseSprings="true" />

    C#:

    public Map()
    {
    InitializeComponent();
    System.Uri src = new System.Uri("http://example.com/~factorial/GeneratedImages/dzc_output.xml", UriKind.Absolute);
    dzMap.Source = new DeepZoomImageTileSource(src);
    }
    Tuesday, July 21, 2009 11:21 AM

Answers

  • It turns out I was just hitting F5 on the wrong project. You have to run the Web-server project, not the one above it that is your actual code. Apparently Silverlight won't even attempt to fetch remote files if it's being served from a file:// location. Thanks for your input Sergey.

    Tuesday, July 21, 2009 1:51 PM

All replies

  • Hi,

    I think there are crossdomain request to images of deep zoom. You need to add clientaccesspolicy.xml file to your domain or host your Silverlight app at the same domain.

    Tuesday, July 21, 2009 11:30 AM
  • Well that solved my problem momentarily. First I created a clientaccesspolicy.xml file as detailed in the link above. The deep zoom images still did not load. So then I created the crossdomain.xml file and tried again. This time the deep zoom image worked fine. Assuming I no longer needed the clientaccesspolicy.xml file, I deleted it. Then I restarted my app, and again the deep zoom would not load. Now, no matter which of the two files I have on the remote server, I can not get the deep zoom to load again. I have deleted all temporary internet files from my browser and still no luck. What's going on here?

    Tuesday, July 21, 2009 12:43 PM
  • You must to put one of that file to domain if your Silverlight app and deep zoom images are not at same domain.

    You can use Fiddler you look at error.

    Tuesday, July 21, 2009 12:49 PM
  • I used Fiddler and Wireshark and saw no HTTP requests going out when I launched my application. I have placed my crossdomain.xml and clientaccesspolicy.xml files in both http://example.com/ and http://example.com/~factorial/ with no luck. Is there a Silverlight-specific cache I can clear? It certainly doesn't appear to even be attempting to load any remote files.

    Tuesday, July 21, 2009 1:08 PM
  • Remove "~" symbol from url

    Tuesday, July 21, 2009 1:14 PM
  • It turns out I was just hitting F5 on the wrong project. You have to run the Web-server project, not the one above it that is your actual code. Apparently Silverlight won't even attempt to fetch remote files if it's being served from a file:// location. Thanks for your input Sergey.

    Tuesday, July 21, 2009 1:51 PM
  • There is an online option for creating automated deep zoom/openzoom images and embedding them in your web page. Check out at http://www.imagesurf.net

     

    Tuesday, December 06, 2011 12:11 AM