Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

Simple step to resolve System.Security.Permissions.FileIOPermission error while trying to apply deployable package in local OneBox or Dev VM

Hichem.Chekebkeb Profile Picture Hichem.Chekebkeb 3,371

You might randomly run into this issue while deploying an update package in your Dev VMs, precisely the first step while trying to generate the runbook:

Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

The problem:

The issue is not related to the command or anything, it is just that the Package zip file is blocked and you need to unblock it before extracting otherwise the AXUpdateInstaller won't be able to call files even after they are extracted. To check that right click on any file in the extracted package folder and go to Properties, if you find the check box Unblock unchecked.

The solution:

Just before extracting the zip file, right click on it > Properties and tick Unblock.

Now you can call the update commands without any problem. 

Comments

*This post is locked for comments

  • Gokul.S Profile Picture Gokul.S 70
    Posted at
    Hi Hichem Chekebkeb, When I download the files they are already in unblock state which is strange, but now i'm facing the same fileIOPermission issue. I tried block it again then unblock it but no use any suggestions?
  • D365 BD Profile Picture D365 BD 45
    Posted at
    Thank you so much Hichem CHEKEBKEB.