Click here to Skip to main content
15,905,068 members
Home / Discussions / C#
   

C#

 
GeneralRe: Modular Programs Pin
Jon Newman6-Mar-03 8:09
Jon Newman6-Mar-03 8:09 
GeneralRe: Modular Programs Pin
Nnamdi Onyeyiri6-Mar-03 8:13
Nnamdi Onyeyiri6-Mar-03 8:13 
GeneralEmbedded OCX Pin
kroczek5-Mar-03 4:48
kroczek5-Mar-03 4:48 
GeneralRe: Embedded OCX Pin
Stephane Rodriguez.5-Mar-03 4:55
Stephane Rodriguez.5-Mar-03 4:55 
Questionanyone heard Light-Weight Object in c#? Pin
henrykao4-Mar-03 15:26
henrykao4-Mar-03 15:26 
AnswerRe: anyone heard Light-Weight Object in c#? Pin
Stephane Rodriguez.5-Mar-03 6:50
Stephane Rodriguez.5-Mar-03 6:50 
GeneralRe: anyone heard Light-Weight Object in c#? Pin
henrykao5-Mar-03 15:27
henrykao5-Mar-03 15:27 
GeneralHelp with Email and Encryption Pin
tbollers4-Mar-03 8:32
tbollers4-Mar-03 8:32 
I am trying to send email with an encrypted xml document attached to it. The file is writen to a log then picked up encrypted using the System.Security.Cryptography namespace and then attached to an email. When I receive the mail and decrypt the attachment, 1 out of ten will have the last few letters of the closing tag is missing. The path that the file takes is as follows.

1.Encrypted using RijndaelManaged Algorithm
2.attached to the email as a MIME Entity and encoded in base64

3.received in the email client and converted from base64 to a byte array of the attachment.
4.decrypt with RijndaelManaged Algorithm.

The kicker is that when I don't encrypt the file with RijndaelManaged the files are all recieved in full and when I encrypt and decrypt without send in files by email the encrypted matches the decrypted file. however, when I do both together I lose data in 1 of every 10 files.

the following is what the end of a messed up file looks like followed by the xml error it gets when opened.

xml file **********************************************************
<?xml version="1.0" standalone="yes"?>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<NewDataSet>
<Segment diffgr:id="Segment1" msdata:rowOrder="0" diffgr:hasChanges="inserted">
<SegmentID>30cee54dfc06</SegmentID>
<MissionID>40904f34df5a</MissionID>
<ModuleName>Local Module</ModuleName>
<Sequence>1</Sequence>
</Segment>
</NewDataSet>
</diffgr:diffgr

xml file********************************************************

A name contained an invalid character. Error processing resource Receive_Log/file.xml'. Line 11, Position 18


</diffgr:diffgr

thanks in advance for your help.


trevor Confused | :confused:
GeneralRe: Help with Email and Encryption Pin
Furty4-Mar-03 18:54
Furty4-Mar-03 18:54 
GeneralRe: Help with Email and Encryption Pin
tbollers5-Mar-03 9:57
tbollers5-Mar-03 9:57 
GeneralBewitching Windows XP's Insides! Pin
antoine@orchus-tech4-Mar-03 4:56
antoine@orchus-tech4-Mar-03 4:56 
GeneralRe: Bewitching Windows XP's Insides! Pin
Stephane Rodriguez.4-Mar-03 8:24
Stephane Rodriguez.4-Mar-03 8:24 
GeneralRe: Bewitching Windows XP's Insides! Pin
Nnamdi Onyeyiri4-Mar-03 8:45
Nnamdi Onyeyiri4-Mar-03 8:45 
GeneralDataGrid cell Selection & Text selection Pin
stone1984-Mar-03 4:50
stone1984-Mar-03 4:50 
GeneralUsing XML files as a database Pin
TeaTime4-Mar-03 3:33
TeaTime4-Mar-03 3:33 
GeneralRe: Using XML files as a database Pin
Mark Sanders4-Mar-03 9:50
Mark Sanders4-Mar-03 9:50 
GeneralRe: Using XML files as a database Pin
Nick Parker4-Mar-03 18:56
protectorNick Parker4-Mar-03 18:56 
QuestionMultiple Forms: Hot to get Keyboard Input from any form and any Control? Pin
STW4-Mar-03 2:38
STW4-Mar-03 2:38 
GeneralDeleting a row from a datagrid Pin
Yann CK3-Mar-03 23:54
Yann CK3-Mar-03 23:54 
GeneralRe: Deleting a row from a datagrid Pin
Adam Turner5-Mar-03 12:57
Adam Turner5-Mar-03 12:57 
GeneralAccesinng IPHLPAPI.DLL GetNetworkParams() from C# Pin
Member 2680673-Mar-03 22:29
Member 2680673-Mar-03 22:29 
GeneralWindows XP and Many Many Windows Pin
Adam Turner3-Mar-03 21:29
Adam Turner3-Mar-03 21:29 
GeneralProvideProperty for event property Pin
jclanz3-Mar-03 21:10
jclanz3-Mar-03 21:10 
GeneralData Grid doubt Pin
Smitha Nishant3-Mar-03 19:51
protectorSmitha Nishant3-Mar-03 19:51 
GeneralRe: Data Grid doubt Pin
Peter Kiss4-Mar-03 0:34
Peter Kiss4-Mar-03 0:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.