Has anyone ever seen an error like this?
Attempt to access the method failed: System.IO.Directory.GetFiles(System.String)
Thanks,
-zd
Printable View
Has anyone ever seen an error like this?
Attempt to access the method failed: System.IO.Directory.GetFiles(System.String)
Thanks,
-zd
What method was it attempting to access?
See if this solves your problem.
Thanks for the great help. However, I am using this with Silverlight and I don't think Silverlight permits fileAccess
thanks,
-zd
Silverlight, so, it's running on an end-user's machine, which means that you're attempting to access a file on their machine. I'm willing to bet that this is a security issue, and that accessing such files is blocked unless you 'configure' it to. How are you currently 'getting' the file path?
after thinking about this error and realizing it was on the end user machine. I realize my way of retrieving files would never work. I was using Directory.GetFiles().
Basically I am wanting to make a dynamic photogallery using the silverlight stuff. I was going to store my pictures and access them locallly for testing purposes (which wasn't a smart choice). The effort was ill faded and unplanned in the beginning. However, after thinking about it some more. I think i can store the pictures in a database and then either use a webservice to deliver them or just get them from the database.
Let me know what you think
Thanks for all the help
-zd
Webservice, better idea. Its format of data returned will stay the same, you can keep changing the UI however you want.
Nice...thanks mendhak. Maintainability...pretty important.
-zd