Website not granting access to its files
-
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.
-
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.
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....
-
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....
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?
-
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?
I figured out your problem, dude. You needed a clientaccesspolicy.xml file in the root of your Website. That fixed the problem.