machinelearning-samples icon indicating copy to clipboard operation
machinelearning-samples copied to clipboard

onnx detection can't find onnxruntime.dll,how to solve it?

Open kankanjiuzou123 opened this issue 3 years ago • 3 comments

System.TypeInitializationException: 'The type initializer for 'Microsoft.ML.OnnxRuntime.NativeMethods' threw an exception.' Unable to load DLL 'onnxruntime': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Microsoft.ML.OnnxRuntime.NativeMethods.OrtGetApiBase() at Microsoft.ML.OnnxRuntime.NativeMethods..cctor() '

kankanjiuzou123 avatar Jul 27 '21 07:07 kankanjiuzou123

This should be fixed by installing the Microsoft.ML.OnnxRuntime NuGet package.

jwood803 avatar Jul 27 '21 10:07 jwood803

@wangkaichuang did the suggestion from @jwood803 fix your issue?

luisquintanilla avatar Sep 07 '21 16:09 luisquintanilla

I got the same issue. i tried following the suggestion from @jwood803 but i can't fix it

tungfpmss avatar Nov 25 '22 02:11 tungfpmss