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

Tip #440: When package deployment fails, blame the internets

$
0
0

As you probably already know, Dynamics CRM has its own “installer” for the solutions, called Package Deployer. The package folder and assembly are usually distributed in the shape of a zip file that needs to be extracted and then used either with Package Deployer executable or installed using PowerShell. As documented.

Usually it all goes well until you receive the following message:

No import packages were found. Exiting the program…

Wait, what? The package is there, the assembly, tested and proven, is there, it all Works On My Machine ™, it even works for some users but not the others.

One of the possible reasons is that, when you download files from the internets, quite often they are blocked, giving an additional protection layer. Turns out, this protection goes beyond the nagging user interface. In this instance, it stops package deployer from seeing the package and the assembly altogether.

Unblock fileSolution is to unblock the downloaded archive file prior to unzipping and then your package should work just fine.

If green-on-black rather than right-mouse click is your thing, the following script unblocks all files of the already extracted archive recursively:

ps: > gci c:\packagefolder | Unblock-File

Viewing all articles
Browse latest Browse all 64797

Trending Articles



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