window.open("c:\test.txt") from Silverlight
- by queen3
I'm trying to open local file from Silverlight. I try Window.Navigate("c:\test.pdf", "_blank") and invoking JavaScript like this:
window.open("c:\test.pdf", "_blank")
Both give "Access is denied".
However it works in plain HTML when I do
<input type="button" value="test"
onclick="window.open('c:\test.pdf', '_blank')" />
Is it Silverlight security restriction? Can I open a local file in a browser from Silverlight application?
The reason behind this is that users store local paths and want to open those files from the app.