How to fix Request for the permission of type 'System.Security.Permissions.FileIOPermission ...failed when deploying an update package on Dev VM

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. ????

Vivian Lund

Radio Frequency Design Engineer

5 个月

Thank you, Hichem, it worked perfectly.

Aitor Martin

Dynamics 365 F&SCM FO / AX senior developer and consultant

1 年

Thanks, Hichem Chekebkeb, that worked perfectly for me.

回复
Hafiz Usama

Senior Technical Consultant D365 FinOps || Cloud and on Prem || Certified || MCP

2 年

Thanks Hichem, it worked for me.

回复
Mansoor Ghazanfer

Sr.Software Developer at Greenbrier

3 年

Thank you, this post worked for me.

回复

要查看或添加评论,请登录

Hichem Chekebkeb的更多文章

社区洞察

其他会员也浏览了