EldoS | Feel safer!

Software components for data protection, secure storage and transfer

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

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
#15087
Posted: 11/18/2010 08:28:50
by DaveBB Barclay (Basic support level)
Joined: 11/18/2010
Posts: 1

Hello,
I keep getting this error while try to make a self-extracting file. Code is:
Code
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.Passphrases.Add("test");
            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?
Thanks

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

Reply

Statistics

Topic viewed 959 times

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




|

Back to top

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

Got it!