Quantcast
Channel: Microsoft Dynamics 365 Community
Viewing all articles
Browse latest Browse all 17314

request for the permission of type ‘fileiopermission’ failed. dynamics ax 2012

$
0
0

During one of my development i got following error, which occurs when I try to convert image into bits and stored in tables. I solved this by adding before the code

 

FileIoPermission _perm;
_perm = new FileIoPermission("c:\\File.txt",'r'); 
_perm.assert(); 

Reference: http://msdn.microsoft.com/en-us/library/fileiopermission.aspx


Viewing all articles
Browse latest Browse all 17314

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>