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
I have installed OnnxRuntime for C# using the NuGet package manager, it is working fine with my device.
but when I try to install the .net application with the model in other PC's I get: error loading image: The type initializer for 'Microsoft.ML.OnnxRuntime.NativeMethods' threw an exception.
Object reference not set to an instance of an object.
at Microsoft.ML.OnnxRuntime.NativeMethods..cctor() in D:\a_work\1\s\csharp\src\Microsoft.ML.OnnxRuntime\NativeMethods.shared.cs:line 368
To reproduce
Urgency
No response
Platform
Windows
OS Version
11/ 10
ONNX Runtime Installation
Built from Source
ONNX Runtime Version or Commit ID
1.20.1
ONNX Runtime API
C#
Architecture
X64
Execution Provider
Default CPU
Execution Provider Library Version
No response
The text was updated successfully, but these errors were encountered:
Hi @skottmckay, I've tried using the setdlldirectory and checked the process explorer, found the onnxruntime.dll being loaded from the bin folder but when I try to deploy the app in other PC this issue is persistent there. Is there any other fix for this?
Describe the issue
I have installed OnnxRuntime for C# using the NuGet package manager, it is working fine with my device.
but when I try to install the .net application with the model in other PC's I get: error loading image: The type initializer for 'Microsoft.ML.OnnxRuntime.NativeMethods' threw an exception.
Object reference not set to an instance of an object.
at Microsoft.ML.OnnxRuntime.NativeMethods..cctor() in D:\a_work\1\s\csharp\src\Microsoft.ML.OnnxRuntime\NativeMethods.shared.cs:line 368
To reproduce
Urgency
No response
Platform
Windows
OS Version
11/ 10
ONNX Runtime Installation
Built from Source
ONNX Runtime Version or Commit ID
1.20.1
ONNX Runtime API
C#
Architecture
X64
Execution Provider
Default CPU
Execution Provider Library Version
No response
The text was updated successfully, but these errors were encountered: