Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.BadImageFormatException: Bad IL format. The format of the file '...\runtimes\win\native\grpc_csharp_ext.x64.dll' is invalid. #2403

Closed
nmtoan91 opened this issue Dec 20, 2021 · 0 comments
Labels
kind/bug These are bugs.
Milestone

Comments

@nmtoan91
Copy link

I'm trying to add Agones SDK on Darkrift 2 project, I used agones SDK package 1.19.0 from NuGet.
I use the grpc_csharp_ext.x64.dll from the assembly file from the project.

The project built OK but when I launch the application, I got following error:

[Error] PluginFactory Plugins/runtimes\win\native\grpc_csharp_ext.x64.dll could not be loaded as an exception occurred.
System.BadImageFormatException: Bad IL format. The format of the file 'F:\MUZIVERSE\muziverse-city-game-server\Server5.0\Plugins\runtimes\win\native\grpc_csharp_ext.x64.dll' is invalid.
at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at DarkRift.Server.PluginFactory.AddFile(String file, DependencyResolutionStrategy dependencyResolutionStrategy, String searchedDirectory) in C:\Users\jamie\Documents\Projects\darkrift-2\DarkRift.Server\PluginFactory.cs:line 151
[Error] PluginFactory Plugins/runtimes\win\native\grpc_csharp_ext.x86.dll could not be loaded as an exception occurred.
System.BadImageFormatException: Bad IL format. The format of the file 'F:\MUZIVERSE\muziverse-city-game-server\Server5.0\Plugins\runtimes\win\native\grpc_csharp_ext.x86.dll' is invalid.
at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at DarkRift.Server.PluginFactory.AddFile(String file, DependencyResolutionStrategy dependencyResolutionStrategy, String searchedDirectory) in C:\Users\jamie\Documents\Projects\darkrift-2\DarkRift.Server\PluginFactory.cs:line 151

Environment:

  • Agones version: C# SDK 1.19.0
@nmtoan91 nmtoan91 added the kind/bug These are bugs. label Dec 20, 2021
@SaitejaTamma SaitejaTamma added this to the 1.20.0 milestone Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug These are bugs.
Projects
None yet
Development

No branches or pull requests

2 participants