In Silverlight 5, how to get Directory name of a file without Running application Out Of Browser?

我只是一个虾纸丫 提交于 2019-12-24 15:51:43

问题


In Silverlight 5, I am performing File operations using Open File Dialog. I want to read the Directory Name of the selected file from the Open File Dialog box. But I am getting error "File operation not permitted. Access to path '' is denied." How to solve this issue ? It is working fine when I opt for "Running application Out Of Browser with elevated trust". But I don't want to run my app outside of the browser. So my problem is to get the Directory name of the selected file without making application to run out of browser. Please help!


回答1:


You could try to run Silverlight 5 in the browser with elevated trust.

This is no guarantee that it will work because the Silverlight app will still be subject to the restrictions imposed by the security settings of the browser.



来源:https://stackoverflow.com/questions/16537467/in-silverlight-5-how-to-get-directory-name-of-a-file-without-running-applicatio

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!