Efferent-Health / fo-dicom.Codecs

Cross-platform Dicom native codecs for fo-dicom
Other
64 stars 22 forks source link

Unable to load DLL 'Dicom.Native': The specified module could not be found. (Exception from HRESULT: 0x8007007E) #59

Closed anishsingh0302 closed 7 months ago

anishsingh0302 commented 7 months ago

I am also facing error after upgrading to latest version of fo-dicom. fo-dicom.Codecs - version 5.10.8

System.DllNotFoundException: Unable to load DLL 'Dicom.Native': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

Stack Trace:  DicomJpeg2000NativeCodec.Memset(Void* ptr, Int32 value, UInt32 num) DicomJpeg2000NativeCodec.Decode(DicomPixelData oldPixelData, DicomPixelData newPixelData, DicomCodecParams parameters) DicomTranscoder.Decode(DicomDataset oldDataset, DicomTransferSyntax outSyntax, IDicomCodec codec, DicomCodecParams parameters) DicomTranscoder.Transcode(DicomDataset dataset) DicomTranscoder.Transcode(DicomFile file)

Anyone of them found any solution?

Environment:

cbeltran1306 commented 7 months ago

Hi @anishsingh0302, how did you get the issue, or what was the previous version you used?

anishsingh0302 commented 7 months ago

@cbeltran1306 fo-dicom.Codecs of my Previous version was 5.10.3. After Upgrading from 5.10.3 to 5.10.8, I have adopted Dicom.Native.dll also in place of Dicom.Native-win-x64.dll. After this only I am observe above error.

jaime-olivares commented 7 months ago

This doesn't seem to be a defect in the library, but an issue in your source code. Please ask in StackOverflow with the tag [fo-dicom]

anishsingh0302 commented 7 months ago

@cbeltran1306 @jaime-olivares I have strongly believe it is defect in library because while debugging I could see while cloning the Dicomfile above error is throwing. Please find the snapshot.

Could you please open this bug if this is valid?

cbeltran1306 commented 7 months ago

Hi @anishsingh0302, you can use this new nuget version 5.11.0 https://www.nuget.org/packages/fo-dicom.Codecs/5.11.0. Please make sure the native library Dicom.Native.dll is in your bin folder when you use .NetFramework environment.