Closed lvanvugt closed 2 years ago
Will fix the script DeployTestAppsFromDVD.ps1 by adding the following lines:
# copy MockTest.dll to server folder
if ((Test-Path "$dvdFilePath\Test Assemblies\Mock Assemblies") -and (Test-Path "$serverFilePath\Add-ins") -and ((Test-Path "$serverFilePath\Add-ins\MockTest.dll") -eq $false)) {
Copy-Item -Path "$dvdFilePath\Test Assemblies\Mock Assemblies\MockTest.dll" -Destination "$serverFilePath\Add-ins"
Restart-NAVServerInstance $bcServerInstance
}
And introduce the variable "$serverFilePath
which equals "${env:ProgramFiles}\Microsoft Dynamics 365 Business Central\200\Service"
Issue
When running the script DeployTestAppsFromDVD.ps1, as referenced in the Appendix of the book (page 361), ona fresh BC installetion form the product DVD the following error will occur:
Solution
As the error clearly describes the
MockTest.dll
is missing. This component indeed is not copied the the Add-ins folder of the sevice tier. To solve the issue make sure to install it (and restart the service tier).Thanx to ...
... Carolien Kaasenbrood of Adfocom for reporting the issue.