confluent-kafka-dotnet: System.TypeInitializationException: The type initializer for 'Confluent.Kafka.Impl.LibRdKafka' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'librdkafka'. Using ASP.NET MVC
When using an ASP.NET MVC web api project I cannot get the binaries to be in the correct location.
When publishing it puts them in {PROJECT_HOME}/bin/x64 and x86 as expected but the only way to get it to work is if I move those libraries into {PROJECT_HOME}/bin folder.
Is this expected?
Obviously a quick fix for this is to move the required binaries during the publish, but I had assumed it would work with bin/x86 and bin/x64 folders that we needed.
See error below.
System.TypeInitializationException: The type initializer for 'Confluent.Kafka.Impl.LibRdKafka' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'librdkafka': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Confluent.Kafka: 0.9.4
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (10 by maintainers)
@treziac Apologies for the time taken to get back.
Have just got round to testing 0.9.5 and it works fine removing the previously added LoadLibrary calls in the global.asax file. Cheers for that.