pkjaer / tridion-powershell-modules

Windows PowerShell module allowing management of SDL Tridion (Content Management System) from the command line
13 stars 14 forks source link

Get-TridionApplicationData error in looking at wrong path #46

Open btruong806 opened 6 years ago

btruong806 commented 6 years ago

Hello Peter,

I installed Tridion-Coreservice module into my web 8.5 system and the install was successfully. So I tried to run the Get-TridionApplicationData command as: Get-TridionApplicationData -Application "cme:UserPreferences" -Subject "tcm:0-12-65552"

but this error is seen: Exception calling "ReadAllBytes" with "1" argument(s): "Could not find a part of the path 'D:\Source\tridion-powershell-modules\CoreService\Clients\Tridion.ContentManager.CoreService.Client.Web_8_5.dll'." At C:\Program Files\WindowsPowerShell\Modules\Tridion-CoreService\2.4.2\Client.psm1:215 char:3

Unable to load the assembly at: D:\Source\tridion-powershell-modules\CoreService\Clients\Tridion.ContentManager.CoreService.Client.Web_8_5.dll At C:\Program Files\WindowsPowerShell\Modules\Tridion-CoreService\2.4.2\Client.psm1:216 char:26

so I did a directory check on my C:\ drive and I see the Tridion.ContentManager.CoreService.Client.Web_8_5.dll live in a different directory as seen below

C:>dir Tridion.contentmanager.core*.dll /s Volume in drive C has no label. Volume Serial Number is 3C8A-67AD

Directory of C:\Program Files\WindowsPowerShell\Modules\Tridion-CoreService\2.4.2\Clients

07/20/2018 04:44 PM 434,176 Tridion.ContentManager.CoreService.Client.2011sp1.dll 07/20/2018 04:44 PM 369,152 Tridion.ContentManager.CoreService.Client.2013.dll 07/20/2018 04:44 PM 707,584 Tridion.ContentManager.CoreService.Client.2013sp1.dll 07/20/2018 04:44 PM 795,648 Tridion.ContentManager.CoreService.Client.Web_8_1.dll 07/20/2018 04:44 PM 781,824 Tridion.ContentManager.CoreService.Client.Web_8_5.dll 5 File(s) 3,088,384 bytes

Any ideas if I need to update/add anything in the system's environment variable or something ?

See screenshot attached to help visualize the above error. get tridionapplicationdata error