You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could not load file or assembly 'Microsoft.Psi.Media_Interop.Windows.x64, Version=0.18.72.1, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
#298
Open
yukw777 opened this issue
Oct 19, 2023
· 2 comments
When I try to run my project, I get the following error:
Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Psi.Media_Interop.Windows.x64, Version=0.18.72.1, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
Attempt to load an unverifiable executable with fixups (IAT with more than 2 sections or a TLS section.) (Exception from HRESULT: 0x80131019) ---> System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Psi.Media_Interop.Windows.x64, Version=0.18.72.1, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
Attempt to load an unverifiable executable with fixups (IAT with more than 2 sections or a TLS section.) (Exception from HRESULT: 0x80131019) ---> System.IO.FileLoadException: Attempt to load an unverifiable executable with fixups (IAT with more than 2 sections or a TLS section.) (Exception from HRESULT: 0x80131019)
The workaround I've found is to include the following in my .csproj file:
When I use dotnet run to run my project, it fails with the same error the first time, and it starts working again the second time. I'm assuming dotnet run somehow copies the dll over on the first run. Not sure why it fails every time on Visual Studio without the workaround above.
Any pointers would be appreciated!
The text was updated successfully, but these errors were encountered:
It’s a multi-framework project that targets net472 and net7.0. This error only happens for net472. Here’s a snippet of my csproj file (which I believe is already the new sdk style):
When I try to run my project, I get the following error:
The workaround I've found is to include the following in my .csproj file:
Adding the following didn't work:
When I use
dotnet run
to run my project, it fails with the same error the first time, and it starts working again the second time. I'm assumingdotnet run
somehow copies the dll over on the first run. Not sure why it fails every time on Visual Studio without the workaround above.Any pointers would be appreciated!
The text was updated successfully, but these errors were encountered: