Wiki

Changes between Initial Version and Version 1 of UnauthorizedAccessException

Show
Ignore:
Timestamp:
06/06/13 21:18:49 (11 years ago)
Author:
Charles
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UnauthorizedAccessException

    v1 v1  
     1= !UnauthorizedAccessException = 
     2 
     3There are different reasons why you might get this exception. One of them is that you are trying to delete an assembly that you loaded (but obviously don't need any more). The solution is to change this: 
     4 
     5{{{ 
     6#!cobra 
     7assembly = Assembly.loadFrom(path) 
     8}}} 
     9 
     10to this: 
     11{{{ 
     12#!cobra 
     13assembly = Assembly.load(File.readAllBytes(path)) 
     14}}} 
     15  
     16== See Also == 
     17 
     18 * http://social.msdn.microsoft.com/forums/en-US/clr/thread/999cca57-bd8b-4c5f-ba9e-bc5463c2aa94 
     19 * MiscellaneousTopics