23 September 2022

D365FO: error while trying to apply deployable package

The following error could appear when you try to apply deployable package manually on your Dev environment:

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

That happens if you forgot to unblock the package Zip file before extracting.

The solution is simple - before extracting locate the file, open file properties and check Unblock checkbox: