Import-CrmPackage System.IO.FileNotFoundException
We have a powershell script that automates the deployment of the
solution file to our build server
The powershell script calls the Import-CrmPackage cmdlet
The cmdlet works when we installed teamcity
It worked when we finished configuring Teamcity
however when it is ran for the first time
The script does not work anymore
Once the virtual machine is rolled back to a previous state
The script will work again
The cmdlet failed when it is trying to import data
There is no data to import in the script
but it fails with System.IO.FileNotFoundException
at BaseImportCustomizations.ExecuteImportApplications
I have even placed all the relevant dlls in the same directory as the script but nothing works
We have tested this thoroughly and we cannot find any explanation for this . We have used different servers and the result is always the same
Is there something we missed .
Is there a patch that we need to apply ?
Our software versions are
Teamcity 2017.1.1
CRM 2015
Windows Server 2012
Please sign in to leave a comment.
It's hard to point out what is going on with a custom powershell script without knowing what the script actually does or in which line of the script it fails. Could you please try to locate the line of powershell where it fails, and send the build log and script to us via the "Submit a request" button above? The submission will keep both the log and script private.