Still getting the error message when enabling and saving the ToDo plugin.
I have followed all instructions.
I am lodging a ticket. It has taken way too much time already.
Thank you.
Cheers
public System.Reflection.Assembly AssemblyResolve(object sender, System.ResolveEventArgs args, JiwaFinancials.Jiwa.JiwaApplication.Plugin.Plugin Plugin)
{
// If the requested assembly is a reference to another plugin, then we need to attempt to resolve the assembly ourselves
foreach(JiwaFinancials.Jiwa.JiwaApplication.Plugin.PluginReference pluginReference in Plugin.PluginReferenceCollection)
{
if (String.Format("{0}, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", pluginReference.Name) == args.Name)
{
return System.Reflection.Assembly.LoadFile(pluginReference.Plugin.RuntimeFileName);
}
}
return null;
}
// necessary or you may get the error "Could not load file or assembly 'REST API, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified."
// when invoking the route(s)
// need to read the reference collection as we don't read that unless compiling, and in this case we need to read it on logon whether it's compiled or not
Plugin.PluginReferenceCollection.Read();
// If we weren't referencing anything defined in the REST API plugin, then we wouldn't need to handle the AssemblyResolve event
AppDomain.CurrentDomain.AssemblyResolve += delegate(object sender, System.ResolveEventArgs args) { return AssemblyResolve(sender, args, Plugin); };
Return to Technical and or Programming
Users browsing this forum: No registered users and 14 guests