-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
api:CSharpissues related to the C# APIissues related to the C# API
Description
Describe the issue
Library does not work on case-sensitive filesystems. We get:
Unhandled exception. System.TypeInitializationException: The type initializer for 'Microsoft.ML.OnnxRuntime.NativeMethods' threw an exception.
---> System.EntryPointNotFoundException: Unable to find an entry point named 'OrtGetApiBase' in DLL 'onnxruntime'.
at Microsoft.ML.OnnxRuntime.NativeMethods.OrtGetApiBase()
at Microsoft.ML.OnnxRuntime.NativeMethods..cctor()
--- End of inner exception stack trace ---
at Microsoft.ML.OnnxRuntime.SessionOptions..ctor()
at Microsoft.ML.OnnxRuntime.InferenceSession..ctor(String modelPath)
at Program.<Main>$(String[] args) in Z:\temp\onnxtest\Program.cs:line 1
Probably due to a mistyped filename somewhere.
To reproduce
Create new C# project, use this Program.cs:
new Microsoft.ML.OnnxRuntime.InferenceSession("");
Urgency
No response
Platform
Windows
OS Version
Microsoft Windows [Version 10.0.19045.6332]
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.22.1
ONNX Runtime API
Other / Unknown
Architecture
X64
Execution Provider
Other / Unknown
Execution Provider Library Version
No response
Copilot
Metadata
Metadata
Assignees
Labels
api:CSharpissues related to the C# APIissues related to the C# API