Hi,
iam getting the below error when i run the installed stand alone .exe file.
i have tried in debugging and run the C# console application.it is working fine. able to execute the application without any issue. But, when i install the setup and execute the .exe it is throwing the below errors.
installed .exe(application file) is throwing error in both my development environment and deployment server.
Development machine : windows 7 (64bit),IIS7
Deployment Server : windows 2008(64bit),IIS7
i tried all the possible approach and Google to find a solution.no luck.
----------
Message:
Exception Log Generated On Friday, June 07, 2013 at 2:15:16 PM
----------------------------------------------------
Exception Information: Exception #1
----------------------------------------------------
Exception Type: System.InvalidOperationException
Message: Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed.
Data: System.Collections.ListDictionaryInternal
TargetSite: Int32 DetermineClientVersion()
HelpLink: NULL/Undefined
Source: System.Data.OracleClient
Stack Trace Information
----------------------------------------------------
at System.Data.OracleClient.OCI.DetermineClientVersion()
at System.Data.OracleClient.OracleInternalConnection.OpenOnLocalTransaction(String userName, String password, String serverName, Boolean integratedSecurity, Boolean unicode, Boolean omitOracleConnectionName)
at System.Data.OracleClient.OracleInternalConnection..ctor(OracleConnectionString connectionOptions)
at System.Data.OracleClient.OracleConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)
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.OracleClient.OracleConnection.Open()
at System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState)
at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
at Microsoft.Practices.EnterpriseLibrary.Data.Database.DoLoadDataSet(DbCommand command, DataSet dataSet, String[] tableNames)
at Microsoft.Practices.EnterpriseLibrary.Data.Database.LoadDataSet(DbCommand command, DataSet dataSet, String[] tableNames)
at Microsoft.Practices.EnterpriseLibrary.Data.Oracle.OracleDatabase.LoadDataSet(DbCommand command, DataSet dataSet, String[] tableNames)
at Microsoft.Practices.EnterpriseLibrary.Data.Database.LoadDataSet(DbCommand command, DataSet dataSet, String tableName)
at Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteDataSet(DbCommand command)
at Microsoft.Practices.EnterpriseLibrary.Data.Oracle.OracleDatabase.ExecuteDataSet(DbCommand command)
at ForceOrphanReportsDAL.DAL.GetOrphansReportDetails()
at ForceOrphanReportsBL.BusinessLogics.GetReportDetailsBL(String orphanFileName, String outOfSyncFileName)
at OutOfSyncReports.Program.Main(String[] args)
Exception Information: Exception #2
----------------------------------------------------
Exception Type: System.BadImageFormatException
Message: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
FileName: NULL/Undefined
FusionLog: NULL/Undefined
Data: System.Collections.ListDictionaryInternal
TargetSite: Int32 OCILobCopy2(IntPtr, IntPtr, IntPtr, IntPtr, UInt64, UInt64, UInt64)
HelpLink: NULL/Undefined
Source: System.Data.OracleClient
Stack Trace Information
----------------------------------------------------
at System.Data.Common.UnsafeNativeMethods.OCILobCopy2(IntPtr svchp, IntPtr errhp, IntPtr dst_locp, IntPtr src_locp, UInt64 amount, UInt64 dst_offset, UInt64 src_offset)
at System.Data.OracleClient.OCI.DetermineClientVersion()
Category: Error
----------
any help is appreciated! since,this is bugging my head for more than 2 weeks.
Thank You in advance,
Raja Duraisamy.