Hi all,
I have faced an error during staging phase related to Data management framework, I could not import or upload files. It was giving an error "Sorry, something went wrong and the file wasn't uploaded".
Also the same error appeared on any file upload control that is not related to document management.
After digging in more with this issue, we found an error related to Document Management Provider.
ComponentName | Microsoft.Dynamics.AX.Framework.Services.Platform.FileManagement |
exceptionMessage |
Could not load file or assembly 'Microsoft.WindowsAzure.Storage, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) |
After submitting a ticket to Microsoft they suggested to upgrade to PU29 (10.0.5) since it is a known issue. Or there are two workarounds to mitigate the issue.
- Install localagent => than 2.3.0
activate predeployment scrips:
Adding the following code to the predeployment script will fix the issue because it completely gets rid of it:
$dst = Get-ChildItem \\Fileserver\agent\wp\environmentname\StandaloneSetup-*\Apps | Select-Object -First 1 -Expand FullName
Remove-Item -Path $dst\AOS\AxServiceApp\AXSF\Code\Microsoft.WindowsAzure.Storage.dll
If all of this is done
Trigger a Maintenance -> update settings-> don’t change anything simply deploy.
- Workaround if not want to redeploy:
Please check the AXService.exe.config file on all AOSs
Find
Change to:
Kill AXService.exe from task manager. If not done via the predeployment script(Option 1) the steps above need to be done after every deployment
Hope this helps.
*This post is locked for comments