none
Retrieve Code Access Security from a network drive RRS feed

  • Question

  • Hi,

    In my software, I let the user export .Net plugins to network drives. Then he can run this plugins with the local software. To do so he has to add Runtime Security Policy to this URL, otherwise a security exception will raise.

    How can I check at the export that the target path has the needed Runtime Security Policy and warn the user ?
    Tuesday, October 28, 2008 3:30 PM

Answers

  • You should get an exception whenever you use Assembly.LoadXxxx().  You can catch the SecurityException.
    Hans Passant.
    • Marked as answer by Zhi-Xin Ye Monday, November 3, 2008 12:10 PM
    Tuesday, October 28, 2008 11:08 PM
    Moderator