nickdu088 / SharpExt4

A .Net library to provide full access (read/write) to Linux ext2/ext3/ext4 filesystem
https://www.nickdu.com/?p=890
42 stars 9 forks source link

Error: Could not load file or assembly 'SharpExt4.dll' or one of its dependencies. The specified module could not be found. #15

Closed thuongthinh closed 1 year ago

thuongthinh commented 1 year ago

Hello! I compiled the sample code SharpExt4-main on .net 4.5, I run on my computer it works fine. When I copy file .exe and .dll to another computer, I get the above error: "Could not load file or assembly 'SharpExt4.dll' or one of its dependencies. The specified module could not be found". Help me!

thuongthinh commented 1 year ago

SharpExt4.dll build Win32 Sample.exe: Build x86 Run on Win7 32 bit

nickdu088 commented 1 year ago

Once SharpExt4 project is compiled, it will generate SharpExt4.dll in the release/debug folder depending on your settings.

thuongthinh commented 1 year ago

I compiled the sample code SharpExt4-main. Deploy on another computer without visual studio installed. image

nickdu088 commented 1 year ago

first you need compile the project as release version as new computer doesn't have debug environment. 2nd, new computer must have .net installed or even vc++ redistribution (vs2013) installed. https://www.microsoft.com/en-nz/download/details.aspx?id=40779 https://www.microsoft.com/en-au/download/details.aspx?id=40784

thuongthinh commented 1 year ago

Thanks!