Skip to main content
Answer

Issue Microsoft.Bcl.AsyncInterfaces

  • July 28, 2023
  • 5 replies
  • 3555 views

Forum|alt.badge.img

When I create unit tests, I reference PX.Tests.Unit.dll, but always have this error.although I don't use this 'Microsoft.Bcl.AsyncInterfaces’. Is there any good way to solve this problem?

“Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)”
 

 

Best answer by Naveen Boga

Hi, @AndrewZ  We will get this problem when there is a change in the DLL versions.

I suggest you upgrade the website from the Acumatica wizard → Perform Application Maintenance so that your BIN will restore the right DLLs and use them in your solution.

 

Hope this helps!

5 replies

Laura03
Captain II
Forum|alt.badge.img+19
  • Captain II
  • July 28, 2023

Hello,

I tried using G oo gle to search your problem and possible solutions appear up on Stack  Over Flow site. Good luck!

https://stackoverflow.com/questions/58134930/could-not-load-file-or-assembly-microsoft-bcl-asyncinterfaces

Laura


Forum|alt.badge.img+1
  • Pro I
  • July 28, 2023

Hi @AndrewZ 
Microsoft.Bcl.AsyncInterfaces is not a Mandatory reference..

1.Remove Microsoft.Bcl.AsyncInterfaces from the Project reference,Web.config,App.Config files.
2.Give the build path correct based on instance bin folder.
3.Build the Solution.
4.Website update from Acumatica ERP configuration.

Please try the above steps to solve the issue.


Forum|alt.badge.img
  • Author
  • Freshman I
  • July 31, 2023

Hello,

I tried using G oo gle to search your problem and possible solutions appear up on Stack  Over Flow site. Good luck!

https://stackoverflow.com/questions/58134930/could-not-load-file-or-assembly-microsoft-bcl-asyncinterfaces

Laura

I don't use it in my project, so I don't have any references.


Forum|alt.badge.img
  • Author
  • Freshman I
  • July 31, 2023

Hi @AndrewZ 
Microsoft.Bcl.AsyncInterfaces is not a Mandatory reference..

1.Remove Microsoft.Bcl.AsyncInterfaces from the Project reference,Web.config,App.Config files.
2.Give the build path correct based on instance bin folder.
3.Build the Solution.
4.Website update from Acumatica ERP configuration.

Please try the above steps to solve the issue.

I created a basic Unit test project, which referenced PX.Tests.Unit and PX.Data under the Acumatica I installed, but there are still such errors. I wonder if there are some historical DLLs in our equipment, and these DLLs cause confusion. 

 

 


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • Answer
  • July 31, 2023

Hi, @AndrewZ  We will get this problem when there is a change in the DLL versions.

I suggest you upgrade the website from the Acumatica wizard → Perform Application Maintenance so that your BIN will restore the right DLLs and use them in your solution.

 

Hope this helps!