Click here to Skip to main content
15,921,577 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to resize a datagrid control when the form resizes? Pin
stephen.hazel6-Mar-03 6:03
stephen.hazel6-Mar-03 6:03 
AnswerRe: how to resize a datagrid control when the form resizes? Pin
A.Wegierski5-Mar-03 20:33
A.Wegierski5-Mar-03 20:33 
GeneralRe: how to resize a datagrid control when the form resizes? Pin
stephen.hazel6-Mar-03 6:05
stephen.hazel6-Mar-03 6:05 
QuestionDelete key not triggering KeyPress in TextBox?? Pin
markmalin5-Mar-03 6:29
markmalin5-Mar-03 6:29 
AnswerRe: Delete key not triggering KeyPress in TextBox?? Pin
Stephane Rodriguez.5-Mar-03 11:00
Stephane Rodriguez.5-Mar-03 11:00 
GeneralRe: Delete key not triggering KeyPress in TextBox?? Pin
Arun Bhalla6-Mar-03 10:49
Arun Bhalla6-Mar-03 10:49 
GeneralModular Programs Pin
Jon Newman5-Mar-03 5:46
Jon Newman5-Mar-03 5:46 
GeneralRe: Modular Programs Pin
Stephane Rodriguez.5-Mar-03 6:48
Stephane Rodriguez.5-Mar-03 6:48 
GeneralRe: Modular Programs Pin
Jon Newman5-Mar-03 7:17
Jon Newman5-Mar-03 7:17 
GeneralRe: Modular Programs Pin
Stephane Rodriguez.5-Mar-03 9:06
Stephane Rodriguez.5-Mar-03 9:06 
GeneralRe: Modular Programs Pin
Nnamdi Onyeyiri6-Mar-03 7:39
Nnamdi Onyeyiri6-Mar-03 7:39 
GeneralRe: Modular Programs Pin
Jon Newman6-Mar-03 7:54
Jon Newman6-Mar-03 7:54 
GeneralRe: Modular Programs Pin
Nnamdi Onyeyiri6-Mar-03 7:55
Nnamdi Onyeyiri6-Mar-03 7:55 
GeneralRe: Modular Programs Pin
Jon Newman6-Mar-03 8:04
Jon Newman6-Mar-03 8:04 
GeneralRe: Modular Programs Pin
Nnamdi Onyeyiri6-Mar-03 8:06
Nnamdi Onyeyiri6-Mar-03 8:06 
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 

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.