VS 2012 Express - Desktop - System.Transactions.dll Error

Recently a few of my desktop applications stopped working, so I opened them up in VS 2012 Express Desktop, and tried debugging them.

It seems when the code tries to connect to the database I get the following error.  

Could not load file or assembly 'System.Transactions.dll' or one of its dependencies.  is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)

I am not sure what has changed or how to fix it - any help would be great.
Who is Participating?
Jacques Bourgeois (James Burger)Connect With a Mentor PresidentCommented:
If this is a Web application, I have heard in many places that there are issues when trying to run 32-bits applications on a 64-bits IIS. The solution that seems to work most of the time is describes toward the middle of the page at http://forums.asp.net/t/983377.aspx
dkilbyAuthor Commented:
no it is a desktop application - also inside VS Express i am unable to actually pull  up a database in database explorer as i get the same error
Jacques Bourgeois (James Burger)PresidentCommented:
Please give a little more details. For instance, if the database is a Microsoft Access database and you are developing in the 64-bits version of Visual Studio, you need to set the compiler for 32-bits.

There is not enough information in your question to be able to see all the possible causes.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.