EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Invalid DOS signature value: 0xCACE (expected 'MZ' - $5A4D) (error cod

Posted: 11/18/2010 08:28:50
by DaveBB Barclay (Basic support level)
Joined: 11/18/2010
Posts: 1

I keep getting this error while try to make a self-extracting file. Code is:
SBPGP.TElPGPWriter pgpWriter =new SBPGP.TElPGPWriter();
            System.IO.FileStream inF, outF;
            pgpWriter.SFXEnabled = true;
            pgpWriter.StubSource = SBPGP.TSBPGPStubSource.ssResource;
            pgpWriter.StubName = "TestSet.PGP:CONSOLE";
            pgpWriter.CompressionAlgorithm = SBPGPConstants.Unit.SB_PGP_ALGORITHM_CM_ZLIB;
            pgpWriter.CompressionLevel = 9;
            pgpWriter.EncryptionType = SBPGP.TSBPGPEncryptionType.etPassphrase;
            pgpWriter.SymmetricKeyAlgorithm = SBPGPConstants.Unit.SB_PGP_ALGORITHM_SK_CAST5;
            pgpWriter.Timestamp = DateTime.Now;

            inF = new System.IO.FileStream(txtFile.Text, FileMode.Open);
            outF = new System.IO.FileStream(txtFile.Text+".pgp", FileMode.Create);
            pgpWriter.Encrypt(inF, outF, 0);

Error is: {"Invalid DOS signature value: 0xCACE (expected 'MZ' - $5A4D) (error code is 13554)"}

Any help?

Dave (This is this the demo licence. We are trialing for a client)



Topic viewed 1023 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!