-
Notifications
You must be signed in to change notification settings - Fork 631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DLL "Dicom.Native" not found when rendering an image on .Net 4.8 (x64) #1680
Comments
I am also facing same error after upgrading to latest version of fo-dicom. System.DllNotFoundException: Unable to load DLL 'Dicom.Native': The specified module could not be found. (Exception from HRESULT: 0x8007007E) Stack Trace: Anyone of them found any solution? |
Facing the same problem after updating to the latests version of fo-dicom I get the error trying to use dicomfile.Clone I was working with fo-dicom: 5.0.3 and fo-dicom.codecs: 5.0.3 but since I updated to the latest version and now i get the same error when i try to clone a dicomfile:
I initialize the transcodermanager like this (it was working just fine on previous versions):
Maybe we have to wait untill fo-dicom.codecs releases a 5.1.1? thanks! |
I upgraded your solution + csproj to the SDK style format (using https://github.com/hvanbakel/CsprojToVs2017 ) and updated to the latest fo-dicom and fo-dicom.Codecs. Anyway, here is a working zip file that contains your sample project where the codecs work. So it is definitely a matter of configuration. I did not find the minimal set of changes you guys need to get this working, I'll leave that exercise to you. @anishsingh0302 and @udiatcimd See above. The codecs work on .NET Framework. We also have unit tests that prove this. Maybe, and this is just a suspicion, the old .csproj format is causing trouble here. Both the unit tests and my working sample use the SDK style. But I don't have time left to verify this, and it would also surprise me. But I have been surprised before. :-) |
Describe the bug
I'm currently facing the problem that I cannot convert/render a DICOM image to a png/jpg. I'm following the documentation, but unfortunately I'm always getting the Exception of type "DllNotFoundException" in Dicom.NativeCodecs.dll, stating that "the DDL 'Dicom.Native' could not be loaded: the module could not be found.".
The documentation also describes that the "Dicom.Native-win64.dll" or "Dicom.Native64.dll" should exist on an x64 platform, but both are not existing.
I'm refering to this: https://github.com/fo-dicom/fo-dicom/wiki/Native-codecs-on-.NET
To Reproduce
(attached example application (see line 45 "dicomImage.RenderImage()") with example Dicom files)
DicomRenderImageTest.zip
Expected behavior
Rendering/Converting the DICOM format into an image format (jpg, png, ...).
Screenshots or test DICOM files
Environment
fo-dicom - version 5.1.1
fo-dicom.Codecs - version 5.10.8
fo-dicom.Imaging.ImageSharp - version 5.1.0
OS: Windows 11 Pro
Platform: .NET Framework 4.8 - x64
Thanks
The text was updated successfully, but these errors were encountered: