web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Excel add in error "could not load the file or assembly"

(0) ShareShare
ReportReport
Posted on by

Hello,

I'm trying to upload data to the price disc journal using the Excel add in through the inbound port using the PricePriceDiscJournal service. But when I select the service in the Excel I get the following error "could not load the file or the assembly 'fiel:////C:\Users\mgracia\AppData\Local\Temp\4rezcjn.dll' the process could not access the file because it is being used by another process'

The dll exists in that folder, permissions are correct, I have tried to close the windows session and I have opened again the Excel, but I get the same error. Does anybody faced the same problem? AX2012 R2 CU7

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Brandon Wiese Profile Picture
    17,788 on at
    RE: Excel add in error "could not load the file or assembly"

    Submit the file to virustotal.com.

    There's no good reason for a DLL to load from a user profile temp directory.  The fact that you can delete it and it comes back on its own is a worse sign.  The random name is another sign.  I bet if you looked at the details of the DLL you would find no publisher name or digital signature.  If you looked at the file with SysInternals.com ProcExp, it would probably reveal even more wrong.

  • Mariano Gracia Profile Picture
    on at
    RE: Excel add in error "could not load the file or assembly"

    client and excel in the same machine, the aos in another one, but is something related to my computer (in other workmates computers it works), I can't use the inbound port from the excel, but I can read, upload and modify data if I select tables instead of services, or read data using queries

  • Iulian Cordobin Profile Picture
    8,201 on at
    RE: Excel add in error "could not load the file or assembly"

    Are you having all the components on one machine (AOS, client, Excel) or on separate ones?

  • Mariano Gracia Profile Picture
    on at
    RE: Excel add in error "could not load the file or assembly"

    unfortunately the dll do not appears in the handle output

  • Suggested answer
    Iulian Cordobin Profile Picture
    8,201 on at
    RE: Excel add in error "could not load the file or assembly"

    Right, it makes sense that it's using the dll from the client side folder of the VS assembly because it's being used from Excel. I imagined the Inbound port is properly configured o be used in Excel add-in.

    You can try to use Handle (download from here technet.microsoft.com/.../bb896655.aspx) and see what process is using the file.

  • Mariano Gracia Profile Picture
    on at
    RE: Excel add in error "could not load the file or assembly"

    Don't think so, I can delete the dll, the file is created each time I select the inbound port from the Excel Add In. If there is a malware, the dll should be created from elsewhere, not each time I select the inbound port from the Excel Add In

  • Brandon Wiese Profile Picture
    17,788 on at
    RE: Excel add in error "could not load the file or assembly"

    You have malware.  Get your computer checked out.

  • Mariano Gracia Profile Picture
    on at
    RE: Excel add in error "could not load the file or assembly"

    I have tested it from another computer and it is working, so there must be something related to my computer

  • Mariano Gracia Profile Picture
    on at
    RE: Excel add in error "could not load the file or assembly"

    Hot swapping is not enabled.

  • Iulian Cordobin Profile Picture
    8,201 on at
    RE: Excel add in error "could not load the file or assembly"

    I can actually see that the process is trying to use the client side generated dlls. Wonder why is that.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#1
Guy Terry Profile Picture

Guy Terry 2 Moderator

#1
Mea_ Profile Picture

Mea_ 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans