question

Cenk-1028 avatar image
0 Votes"
Cenk-1028 asked XingyuZhao-MSFT commented

Could not load file or assembly System.Runtime.CompilerServices.Unsafe, The located assembly manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Hello guys,

I have a web API that was working without a problem. But today I am getting this error on the production server:

Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not
match the assembly reference. (Exception from HRESULT: 0x80131040)

There is no such problem with the local machine. I tried to update this System.Runtime.CompilerServices.Unsafe but still having the same problem. Any ideas on how to fix it?

Best Regards.

dotnet-runtime
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @Cenk-1028 ,
Are the suggestions in the following reference helpful to your question?
Could not load file or assembly System.Runtime.CompilerServices.Unsafe


0 Votes 0 ·

0 Answers