Skip to main content
Solved

Issue Microsoft.Bcl.AsyncInterfaces


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!

View original
Did this topic help you find an answer to your question?

5 replies

Laura02
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3132 replies
  • 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
  • 59 replies
  • 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.


  • Author
  • Freshman I
  • 6 replies
  • July 31, 2023
Laura02 wrote:

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.


  • Author
  • Freshman I
  • 6 replies
  • July 31, 2023
girik06 wrote:

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
  • 3410 replies
  • 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!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings