Hello everyone. I’m using Silverlight webbrowser control, and I’m having some problems with that. I’m trying to use a Html page in a webbrowser control in my silverlight project, and i want to load this page from the local filesystem. so I’m doing this:
string html = File.ReadAllText(@"C:/Users/mehdi/Desktop/essai.html");
wbNavigator.NavigateToString(html);
When doing this I have this exception: Unauthorized file operation. Access to the path is denied. Can anyone help me plz ? thx .
For this kind of access the Silverlight app in question needs elevated permissions. Failing that you have two options: