2
This issue is resolved by the application of a AssemblyResolver
:
static System.Reflection.Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
{
string assemblyFullName;
System.Reflection.AssemblyName assemblyName;
const string PRIMAVERA_FOLDER = @"C:\Program Files (x86)\PRIMAVERA\SG100\Apl\";
assemblyName = new System.Reflection.AssemblyName(args.Name);
assemblyFullName = System.IO.Path.Combine(PRIMAVERA_FOLDER, assemblyName.Name + ".dll");
if (System.IO.File.Exists(assemblyFullName))
return System.Reflection.Assembly.LoadFile(assemblyFullName);
else
return null;
}
Which you must evoke in your method Main
class Program
:
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
Confirm that all specific DLL’s SPRINGTIME are with the property Copy Local = False
.
it seems clear to me the message, that something is null, objAplConf for example. Inspect everything that passes to the method
AbrePlataforma
you’ll find the problem– Ricardo Pontual