Skip to main content

Notifications

Announcements

No record found.

How to solve error with file upload in On-prem

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. 

4064.png

VERSION INFORMATION:
Installed product version : Microsoft Dynamics 365 for Finance and Operations (10.0.4)
Installed platform version : Update28 (7.0.5314.35436)

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)

2.png

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.

  1. Install localagent => than 2.3.0

             https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/lifecycle-services/update-local-agent

            activate predeployment scrips:

           https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/lifecycle-services/pre-post-scripts

          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.

 

  1. 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.

Comments

*This post is locked for comments