lundi 8 août 2016

AssemblyResolve event does not fire

I am trying load a dll in the application in runtime with the AssemblyResolve, but it will not fire the event, i've put a breakpoint in the eventhandler but it never gets there. instead it throws an exception where it tries to acces the dll.

AppDomain.CurrentDomain.AssemblyResolve += ((sender, argss) => 
        { //breakpoint here
            return null;
        });


        System.Data.SQLite.SQLiteConnection sd = new System.Data.SQLite.SQLiteConnection("Data Source = " + "C://test" + @"\system.db" + "; Version = 3; ", true); //An unhandled exception of type 'System.DllNotFoundException' here





Aucun commentaire:

Enregistrer un commentaire