public class DBHelper : IDisposable { private static readonly log4net.ILog log = log4net.LogManager.GetLogger(typeof(DBHelper)); private const string EDK = "11d50a3a"; private static Hashtable connStrings = new Hashtable(); private const bool m_bUseDummyReader = true; DbTransaction transaction; IDbConnection connection; private string databaseName; private Database CurrDB; cfsEncryption cfsEncrypt = new cfsEncryption(); public DBHelper(string strDB) { Init(strDB, IsolationLevel.ReadCommitted); } private void Init(string strDB, IsolationLevel iso) { databaseName = strDB; try { CurrDB = DatabaseFactory.CreateDatabase(strDB); connection = CurrDB.CreateConnection(); connection.Open(); transaction = (DbTransaction)connection.BeginTransaction(); } catch (Exception ex) { if ((log.IsErrorEnabled)) log.Error(string.Format(System.Globalization.CultureInfo.CurrentCulture, "Connection to DB ->{0} Failed", strDB), ex); throw; } }
Could not load file or assembly 'log4net' or one of its dependencies. An attempt was made to load a program with an incorrect format. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.BadImageFormatException: Could not load file or assembly 'log4net' or one of its dependencies. An attempt was made to load a program with an incorrect format
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)