473,385 Members | 1,311 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Upgrading to Visual Studio 2008. Bad Data

Hi,

I am in process of upgrading to Visual Studio 2008 from 2003. Most of the upgrade is easy except this one issue:

When application is trying to Decrypt encrypted data from database, it is throwing following error. This code works fine with Visual Studio 2003. Can someone help me with this and tell me cause of the problem and how to fix this?

System.Security.Cryptography.CryptographicExceptio n occurred
Message="Bad Data. "
Source="mscorlib"
StackTrace:
at System.Security.Cryptography.CryptographicExceptio n.ThrowCryptogaphicException(Int32 hr)
at System.Security.Cryptography.Utils._DecryptData(Sa feKeyHandle hKey, Byte[] data, Int32 ib, Int32 cb, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode PaddingMode, Boolean fDone)
at System.Security.Cryptography.CryptoAPITransform.Tr ansformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
at System.Security.Cryptography.CryptoStream.FlushFin alBlock()
at PGAS.Util.Encryption.Transform(String vstrString, ICryptoTransform vobjCryptoTransform) in C:\Releases\PGAS 8.0.0\3M UI\3MUtil\Util_UIMT\Encryption.vb:line 129
InnerException:

Thanks,
Vivek Agarwal
Jul 24 '09 #1
3 1831
Frinavale
9,735 Expert Mod 8TB
Try re-referencing the Cryptography that you're using.
If that doesn't work, consider using different cryptography than you are.
Jul 27 '09 #2
I tried re-referencing the object but that doesn't help. What other type of cryptography can I use?
Jul 27 '09 #3
Frinavale
9,735 Expert Mod 8TB
On second thought, I'm not sure if switching help you since your database data is already encrypted....


I think I know what's happened. I think that was previously being used has been changed with the update.

At this time I don't know how to fix this.

Maybe try something like:
  • back up your database
  • load the Visual Studio 2003 and connect to the backup database
  • decrypt the data
  • open the Visual Studio 2008 project
  • connect to the decrypted backup database
  • re-encrypt it

-Frinny
Jul 27 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: fiona | last post by:
Reading, Berkshire, UK 05 June 2007 - Crainiate Software make details available of the release of Objecto Framework 2.0, an upgrade to their enterprise business component framework, designed to...
6
by: jonny | last post by:
I am new to web design and programming and was wonder which of these two would be better to invest my time to learn. Visual Web Developer 2005 vs. Microsoft Expression. I would like to make...
2
by: Logician | last post by:
I am using Visual .Net and C# (1.1) and I am trying to upgrade. But Amazon do not sell any upgrade. I cannot see any product listing to buy. Is the upgrade now all in with Visual Studio? Or how...
2
by: Nikolay Belyh | last post by:
1. Why does Visual Studio 2008 started ignoring //{NO_DEPENDENCIES} in resource.h? If I edit file "resource.h" _manually_, it rebuilds the whole solution. It worked just fine with Visual Studio...
2
by: Cramer | last post by:
So, what is the relationship between Visual Studio and Visual Web Developer. I find a lot of documentation on MSDN that presents Visual Web Developer as it's own stand-alone product (which I'd...
0
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
0
by: _Who | last post by:
I'm trying to free up some space on my system disk. In Add or Remove Programs I see: Microsoft Windows SDK for Visual Studio 2008 .NET Framework Tools Microsoft Windows SDK for Visual Studio...
1
by: Puja Patel | last post by:
hi all, am not sure if this is the right place for this post. I created a website on .net framework 2.0 using visual studio 2005 and web service software factory. I created all my business...
3
by: Johnson | last post by:
I'm not sure if this is an IIS 5.1 issue or ASP.NET issue, or Visual Studio 2008 issue -- thus posting to 3 groups. Please don't be offended. The problem I'm encountering is that Visual Studio...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.