Dependent Assembly is being resolved to the wrong version and I need to use another app.config file with different assemblyBinding information.
I used other posts to change the config file with code like this:
AppDomain.CurrentDomain.SetData("APP_CONFIG_FILE", assemblyFolder + @"\MRPDataIntegrity.dll.config");
System.Configuration.ConfigurationManager.RefreshSection("configuration");
//the rest of refresh code from other posts
This doesn't affect though assemblyBinding information because i still get exception. I do not want to resort to this solution:
AppDomain.CurrentDomain.AssemblyResolve +=..
Is there a hacky way to access and/or modify assemblyBinding information preloaded into application?
Aucun commentaire:
Enregistrer un commentaire