Runtimes Copy Exception
This error is caused in some rare cases where the DLLs for our special ML model are not copied over properly. In the solution below, you can solve this one-time error.
IronQrDetection.Exceptions.IronQrRuntimesCopyException : Machine learning DLLs were not successfully automatically copied from the runtimes directory. This may occur on various operating systems or frameworks. Please follow the steps in the following article to resolve this issue: https://ironsoftware.com/csharp/qr/troubleshooting/runtimes-copy-exception/
Solution
- The solution to this problem is to first navigate to the
runtimes
folder. In your solution, this will be under/bin/Debug/net6.0/runtimes
(Debug is an example, follow the Configuration you have set) (If you're using a different target framework, replacenet6.0
). - You will see all supported platforms and operating systems as directories in
/runtimes/
, go into the one that applies to you and copy the files out into the output/bin/Debug/net6.0/
directory manually.