Results 1 to 2 of 2

Thread: SOLVED: Images shows in debug but not in published page

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2004
    Posts
    297

    SOLVED: Images shows in debug but not in published page

    My app shows an image on an absolute URL with this code:
    Code:
    ImageSource imgSrc = new BitmapImage(new Uri("http://designyoutrust.com/wp-content/uploads2/bla.jpg", UriKind.RelativeOrAbsolute));
    Binding binding = new Binding();
    binding.Source = imgSrc;
    binding.Mode = BindingMode.OneWay;
    
    DiaUserControl dia = new DiaUserControl(1); //my controls that has the image 'PhotoImage'
    
    dia.PhotoImage.SetBinding(Image.SourceProperty, binding);
    So I said, in debug it works, and I can enjoy the picture but, from the debug or release or the web or the published folder the picture won't show.

    No errors though, the app doesn't throw an exception of any kind.
    Last edited by HWijngaarD; May 5th, 2010 at 03:08 PM. Reason: Solved

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2004
    Posts
    297

    Re: Images shows in debug but not in published page

    Images do show up when I put the app in IIS.
    No problem at all.
    Weird that they don't in the published, debug and the release folder.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width