The following error occurs when connecting to any database:
"System.BadImageFormatException Could not load file or assembly 'System.EnterpriseServices.Wrapper.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format. Stack Trace: at System.Transactions.Transaction.JitSafeGetContextTransaction(ContextData contextData) at System.Transactions.Transaction.FastGetTransaction(TransactionScope currentScope, ContextData contextData, Transaction& contextTransaction) at System.Transactions.Transaction.get_Current() at System.Data.ProviderBase.DbConnectionPool.GetFromTransactedPool(Transaction& transaction) at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at..."
Wrapper.dll and Transactions Class is part of MS .Net Framework as shown in this article:
http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx
A standard Microsoft .Net Framework is not installed on machine. Only .Net Framework 4.0 Client Profile is installed.
The .NET Framework Client Profile is not supported.
Use below link to download a standard Microsoft .NET Framework 3.5 SP1 or 4.0 version on the machine:
http://www.microsoft.com/en-us/download/details.aspx?id=22