How to fix Request for the permission of type 'System.Security.Permissions.FileIOPermission ...failed when deploying an update package on Dev VM
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. ????
Radio Frequency Design Engineer
5 个月Thank you, Hichem, it worked perfectly.
Dynamics 365 F&SCM FO / AX senior developer and consultant
1 年Thanks, Hichem Chekebkeb, that worked perfectly for me.
Senior Technical Consultant D365 FinOps || Cloud and on Prem || Certified || MCP
2 年Thanks Hichem, it worked for me.
Sr.Software Developer at Greenbrier
3 年Thank you, this post worked for me.