Results 1 to 8 of 8

Thread: [RESOLVED] [3.0/LINQ] Weird Error

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2006
    Location
    USA
    Posts
    122

    Resolved [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

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [3.0/LINQ] Weird Error

    What method was it attempting to access?

  3. #3
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: [3.0/LINQ] Weird Error

    See if this solves your problem.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Oct 2006
    Location
    USA
    Posts
    122

    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

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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?

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Oct 2006
    Location
    USA
    Posts
    122

    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

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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.

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Oct 2006
    Location
    USA
    Posts
    122

    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
  •  



Click Here to Expand Forum to Full Width