I have a program which I want to distribute through my webserver running Debian.
So I uploaded my files—containing DLLs—to the server. After I did let them download through my updating application I got an error. So I tried downloading them like I uploaded them: Via Eclipse IDE. But the error did also occur:
Title of the Error Dialog:
Main.exe - Bad Image
Error:
Blabla.dll is either not designed to run on Windows or it contains an error […] Error status 0xc0000130.
So I am wondering what causes the DLL corruption. Has it to do with Eclipse or Debian?
EDIT The md5 checksums of the original, the uploaded and the downloaded file are different.
EDIT2 It seems this is an issue between the codepage selected in eclipse which is UTF-8. I will test it with cp1250 (quick test did work so far, but my app crashed) in detail tomorrow.
EDIT3 Also, my updater didn't work correctly interpreting the downloaded files as text files.
One typical reason may be an incomplete upload. Check the size of the uploaded DLLs, reupload if the size is smaller than expected.
Another reason is the file conversion between Windows and UNIX, which damages binary files when they are mistakenly transferred in text mode. I don't believe this is your case (since you seem to be using HTTP and not FTP), but it might be worth checking.
Otherwise you'll have to compare your original DLL compiled by Eclipse with the DLL you download from your webserver, and post the differences here for further analysis.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다