# Cryptography Exception Startup Error

**URL:** <https://forums.toadworld.com/t/cryptography-exception-startup-error/5828>\
**Category:** Toad Data Point & Toad Intelligence Central\
**Created:** [March 19, 2008, 6:55am UTC](https://forums.toadworld.com/t/cryptography-exception-startup-error/5828 "2008-03-19T06:55:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SteveM](https://avatars.discourse-cdn.com/v4/letter/s/a183cd/32.png) [@SteveM](https://forums.toadworld.com/u/SteveM)\
**Post date:** [March 19, 2008, 6:55am UTC](https://forums.toadworld.com/t/cryptography-exception-startup-error/5828/1 "2008-03-19T06:55:08Z")

</div>

I used the 2.0.0.348 beta for a day or so but now get the error detailed below when I attempt to start the program. I reintsalled the software but get the same error. Any suggestion on how to get the beta going again?

System.Security.Cryptography.CryptographicException  
Bad Data.

Stack Trace:  
at System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr)  
at System.Security.Cryptography.Utils.\_DecryptData(SafeKeyHandle hKey, Byte[] data, Int32 ib, Int32 cb, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode PaddingMode, Boolean fDone)  
at System.Security.Cryptography.CryptoAPITransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)  
at System.Security.Cryptography.CryptoStream.FlushFinalBlock()  
at Quest.Toad.Util.Encryption.Decrypt(String valueToDecrypt, SymmetricAlgorithm des)  
at Quest.Toad.ConnectionManager.ConnectMediator.ConvertPasswords(SymmetricAlgorithm fromDes, SymmetricAlgorithm toDes)  
at Quest.Toad.Util.EncryptionConfigControl.ConvertPasswords(ConnGroupNode connGroupNode, SymmetricAlgorithm fromDes, SymmetricAlgorithm toDes)  
at Quest.Toad.Util.EncryptionConfigControl.ConvertPasswords(ConnGroupNode connGroupNode, SymmetricAlgorithm fromDes, SymmetricAlgorithm toDes)  
at Quest.Toad.Util.EncryptionConfigControl.ConvertTripleDesPasswords()  
at Quest.Toad.StartupForm.LoadPlugins()  
at Quest.Toad.StartupForm.Main(String[] args)

---

<div class="post-metadata">

**Author:** ![jacquesrk](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/jacquesrk/32/107_2.png) [@jacquesrk](https://forums.toadworld.com/u/jacquesrk)\
**Post date:** [March 19, 2008, 6:22pm UTC](https://forums.toadworld.com/t/cryptography-exception-startup-error/5828/2 "2008-03-19T18:22:44Z")

</div>

It might have something to do with your Connections.xml file. I would try the following:

1. In your application data directory, rename your Connections.xml file to something like Connections\_old.xml. The application data directory can be found by clicking on the “Application Data Directory” hyperlink in the Help-\>About… window; by default it would be  
C:\Documents and Settings%USERNAME%\Local Settings\Application Data\Quest Software\Toad for Data Analysis Beta 2.0

2. Once you’ve renamed the Connections.xml file, open up Toad for Data Analysis and see if you still have the same error. If not, you can use the “Import connections from a file” button at the top of the Navigation Manager window, and re-import the connections from the “Connections\_old.xml” file that you had created in step 1).

If everything works and you have a new Connections.xml file, you can of course get rid of the saved “Connections\_old.xml” file.

---

<div class="post-metadata">

**Author:** ![SteveM](https://avatars.discourse-cdn.com/v4/letter/s/a183cd/32.png) [@SteveM](https://forums.toadworld.com/u/SteveM)\
**Post date:** [March 21, 2008, 5:29am UTC](https://forums.toadworld.com/t/cryptography-exception-startup-error/5828/3 "2008-03-21T05:29:08Z")

</div>

Thanks, that fixed the issue.
