Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Website not granting access to its files

Website not granting access to its files

Scheduled Pinned Locked Moved Web Development
helpcsharptutorialwpfcom
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fjparisIII
    wrote on last edited by
    #1

    This is a strange problem that just started happening on one (and only one) of my computers, and I'm wondering if anyone has any insights. I have a Website with hundreds of small jpeg files that I download into a Web page and display in a mosaic, a new image every second or so. This suddenly stopped working on one of my machines a few hours ago. I have no idea what I might have done or how to fix the problem. I rebooted my machine and I still get the error. The text that the exception handler returns is the following: "The Website may not be granting access to its files from your computer." Not that it matters, but this is a Silverlight application that is reporting the error. I do have another application on the same machine (a WPF application) that accesses files from another folder on the same Website with no problem. And the Silverlight application displays my images just fine from another computer I have available. I'm using the System.Net.WebClient class to download the images. In case you want to test whether this happens on your own machine, I'd be grateful if you tried it. As mentioned above, the downloads work fine on my other machine. The Website is here: http://parisphototools.com This is a Website that is under construction and is not yet fully functional, in case you try to Register on the Website for example.

    L 1 Reply Last reply
    0
    • F fjparisIII

      This is a strange problem that just started happening on one (and only one) of my computers, and I'm wondering if anyone has any insights. I have a Website with hundreds of small jpeg files that I download into a Web page and display in a mosaic, a new image every second or so. This suddenly stopped working on one of my machines a few hours ago. I have no idea what I might have done or how to fix the problem. I rebooted my machine and I still get the error. The text that the exception handler returns is the following: "The Website may not be granting access to its files from your computer." Not that it matters, but this is a Silverlight application that is reporting the error. I do have another application on the same machine (a WPF application) that accesses files from another folder on the same Website with no problem. And the Silverlight application displays my images just fine from another computer I have available. I'm using the System.Net.WebClient class to download the images. In case you want to test whether this happens on your own machine, I'd be grateful if you tried it. As mentioned above, the downloads work fine on my other machine. The Website is here: http://parisphototools.com This is a Website that is under construction and is not yet fully functional, in case you try to Register on the Website for example.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      In caption of the message it is displayed "Photo Not Found", So I think the photo named "splash800.jpg" is not loading in the application from it's path. (May be the path of the image of name of the image is wrong...) Hope this will help!

      Jinal Desai - LIVE Experience is mother of sage....

      F 1 Reply Last reply
      0
      • L Lost User

        In caption of the message it is displayed "Photo Not Found", So I think the photo named "splash800.jpg" is not loading in the application from it's path. (May be the path of the image of name of the image is wrong...) Hope this will help!

        Jinal Desai - LIVE Experience is mother of sage....

        F Offline
        F Offline
        fjparisIII
        wrote on last edited by
        #3

        Thanks for testing this. Obviously the problem is worse than I thought, and not just something that suddenly turned wrong on one of my machines (my development machine). The "Photo Not Found" is my caption on my MessageBox, from my Silverlight application. All of the words after the word, "Reason" are from the exception handler in the event, System.Net.WebClient.OpenReadCompleted, which I call e. The expression, e.Error.Message supplies the words, "The Website may not be granting access to its files from your computer." The URL I'm passing to WebClient.OpenReadAsync() is the following:

        http://www.parisphototools.com/ClientBin/SplashScreenPhotos/splash800.jpg

        If you type that URL into your Web browser, you will see the image pop up. So the paths I'm sending to WebClient.OpenReadAsync() are valid and the Website itself is not restricting access. The question then becomes, why all of a sudden is the call to WebClient.OpenReadAsync() failing on some machines? And why doesn't it fail on my other machine? The machine it's failing on is running Vista and the machine it doesn't fail on is running XP. I must have done something in the Silverlight application that somehow is changing permissions that only affects some machines, and maybe it is operating system dependent. Anyone have any ideas? What should I be looking for?

        F 1 Reply Last reply
        0
        • F fjparisIII

          Thanks for testing this. Obviously the problem is worse than I thought, and not just something that suddenly turned wrong on one of my machines (my development machine). The "Photo Not Found" is my caption on my MessageBox, from my Silverlight application. All of the words after the word, "Reason" are from the exception handler in the event, System.Net.WebClient.OpenReadCompleted, which I call e. The expression, e.Error.Message supplies the words, "The Website may not be granting access to its files from your computer." The URL I'm passing to WebClient.OpenReadAsync() is the following:

          http://www.parisphototools.com/ClientBin/SplashScreenPhotos/splash800.jpg

          If you type that URL into your Web browser, you will see the image pop up. So the paths I'm sending to WebClient.OpenReadAsync() are valid and the Website itself is not restricting access. The question then becomes, why all of a sudden is the call to WebClient.OpenReadAsync() failing on some machines? And why doesn't it fail on my other machine? The machine it's failing on is running Vista and the machine it doesn't fail on is running XP. I must have done something in the Silverlight application that somehow is changing permissions that only affects some machines, and maybe it is operating system dependent. Anyone have any ideas? What should I be looking for?

          F Offline
          F Offline
          fjparisIII
          wrote on last edited by
          #4

          I figured out your problem, dude. You needed a clientaccesspolicy.xml file in the root of your Website. That fixed the problem.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups