Click here to Skip to main content
15,918,596 members
Home / Discussions / C#
   

C#

 
GeneralRe: Progress Bar in Status bar panel Pin
bouli7-Jul-04 23:52
bouli7-Jul-04 23:52 
GeneralRe: Progress Bar in Status bar panel Pin
Heath Stewart8-Jul-04 3:16
protectorHeath Stewart8-Jul-04 3:16 
GeneralRe: Progress Bar in Status bar panel Pin
bouli8-Jul-04 22:08
bouli8-Jul-04 22:08 
GeneralRe: Progress Bar in Status bar panel Pin
Gary Thom7-Jul-04 5:58
Gary Thom7-Jul-04 5:58 
GeneralRe: Progress Bar in Status bar panel Pin
bouli7-Jul-04 23:53
bouli7-Jul-04 23:53 
GeneralRe: Progress Bar in Status bar panel Pin
Gary Thom8-Jul-04 0:10
Gary Thom8-Jul-04 0:10 
Questionhow does this exception happened Pin
noosword7-Jul-04 2:58
noosword7-Jul-04 2:58 
AnswerRe: how does this exception happened Pin
Heath Stewart7-Jul-04 5:49
protectorHeath Stewart7-Jul-04 5:49 
It could be how you're storing data. A common error is to take the blob (a byte[]) and write it to a text file. This won't work correctly, since text files store data differently and the bytes will be encoded incorrectly.

Either use an encoding (the common encoding is base64, for which you can use the ToBase64Transform and FromBase64Transform classes) and write the blob to a binary file (using a FileStream, as opposed to a StreamWriter or a StreamReader for example).

The exception you got is consistent with this type of problem. The cipher block or cipher text is not stored correctly and, therefore, will not decrypt when you read it in.

If this doesn't seem to be the case, please provide more information that may be helpful.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: how does this exception happened Pin
Anonymous7-Jul-04 17:19
Anonymous7-Jul-04 17:19 
GeneralRe: how does this exception happened Pin
Heath Stewart8-Jul-04 3:01
protectorHeath Stewart8-Jul-04 3:01 
GeneralRe: how does this exception happened Pin
noosword8-Jul-04 17:52
noosword8-Jul-04 17:52 
Generalwindows using IIS Pin
ravindra2317-Jul-04 2:28
ravindra2317-Jul-04 2:28 
GeneralRe: windows using IIS Pin
Not Active7-Jul-04 2:55
mentorNot Active7-Jul-04 2:55 
GeneralRe: windows using IIS Pin
Peter Vertes7-Jul-04 3:35
Peter Vertes7-Jul-04 3:35 
GeneralRe: windows using IIS Pin
Heath Stewart7-Jul-04 5:45
protectorHeath Stewart7-Jul-04 5:45 
QuestionHow to make row stay at the top in datatable Pin
Atlemann7-Jul-04 1:37
Atlemann7-Jul-04 1:37 
AnswerRe: How to make row stay at the top in datatable Pin
DougW487-Jul-04 7:09
DougW487-Jul-04 7:09 
GeneralRe: How to make row stay at the top in datatable Pin
Atlemann7-Jul-04 22:33
Atlemann7-Jul-04 22:33 
Generalcustom ListView header ctrl and XP theme Pin
Andy H7-Jul-04 1:17
Andy H7-Jul-04 1:17 
GeneralRe: custom ListView header ctrl and XP theme Pin
Heath Stewart7-Jul-04 5:39
protectorHeath Stewart7-Jul-04 5:39 
QuestionHow do I do double-click file opening with my C# app? Pin
spazzman7-Jul-04 0:18
spazzman7-Jul-04 0:18 
AnswerRe: How do I do double-click file opening with my C# app? Pin
Dave Kreskowiak7-Jul-04 5:04
mveDave Kreskowiak7-Jul-04 5:04 
GeneralRe: How do I do double-click file opening with my C# app? Pin
spazzman7-Jul-04 12:01
spazzman7-Jul-04 12:01 
GeneralRe: How do I do double-click file opening with my C# app? Pin
MilesAhead7-Jul-04 12:27
MilesAhead7-Jul-04 12:27 
GeneralRe: How do I do double-click file opening with my C# app? Pin
Dave Kreskowiak7-Jul-04 12:39
mveDave Kreskowiak7-Jul-04 12:39 

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.