|
-
Jan 31st, 2008, 11:38 AM
#1
Thread Starter
Lively Member
[RESOLVED] [3.0/LINQ] Weird Error
Has anyone ever seen an error like this?
Attempt to access the method failed: System.IO.Directory.GetFiles(System.String)
Thanks,
-zd
-
Jan 31st, 2008, 11:41 AM
#2
Re: [3.0/LINQ] Weird Error
What method was it attempting to access?
-
Jan 31st, 2008, 11:43 AM
#3
Re: [3.0/LINQ] Weird Error
See if this solves your problem.
-
Jan 31st, 2008, 12:00 PM
#4
Thread Starter
Lively Member
Re: [3.0/LINQ] Weird Error
Thanks for the great help. However, I am using this with Silverlight and I don't think Silverlight permits fileAccess
thanks,
-zd
-
Feb 4th, 2008, 04:21 PM
#5
Re: [3.0/LINQ] Weird Error
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?
-
Feb 4th, 2008, 04:42 PM
#6
Thread Starter
Lively Member
Re: [3.0/LINQ] Weird Error
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
-
Feb 4th, 2008, 04:49 PM
#7
Re: [3.0/LINQ] Weird Error
Webservice, better idea. Its format of data returned will stay the same, you can keep changing the UI however you want.
-
Feb 5th, 2008, 08:58 AM
#8
Thread Starter
Lively Member
Re: [3.0/LINQ] Weird Error
Nice...thanks mendhak. Maintainability...pretty important.
-zd
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|