Click here to Skip to main content
15,921,577 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In silverlight application i used the code:::


string[] theFiles = Directory.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.History), "*", SearchOption.AllDirectories);



during build of code i got error

ERROR::'System.IO.SearchOption' is inaccessible due to its protection level


Now what to do if i wanna search history files,



:rose:
WITH REGARDS
Er.Aashish Khandelwal
Posted

1 solution

No matter how many times you ask this differently, the end result is the same. Silverlight is sandboxed, and you cannot write an app inside your browser, and expect it to have free access to your users hard drive. Given what I see of the sort of work happening in the outsourcing industry today, if that were not the case, I'd disconnect my computer from the internet, or at least require the bio of every person who worked on a web page, before I'd consider viewing it. Certainly, the users of your silverlight app, will be horrified and furious to find that you've deleted all their cookies and their browsing history, in the unlikely event that you succeed in your bizare and insane quest to do so.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900