File Operation Not Permited Access to path is denied RRS feed

  • Question

  • Hi all

    I try to Load a File that Saved to specific path I know name and path but error raise

    my code is

         stringpath = @"C:\Saved\1.xxx";

        Streamss = (Stream)File.OpenRead(path);

    Note that it can Access via OpenFileDialog but it is not good for me

    thank you

    Wednesday, July 22, 2015 4:39 PM


  • This is how Silverlight works, by design.

    If you made your app an out of browser app then it would be no problem.

    As it is, you're in the browser security sandbox.

    If you want to work with files on the local machine, you'd do better with a desktop app like wpf or a universal windows app.

    Wednesday, July 22, 2015 6:33 PM