I have a ASP.NET Core 1.1 webserver running on full .NET 4.6.2. I am using the ACCPAC.Advantage.dll
's (packaged in a custom NuGet bundle) to connect to a local Sage installation. Previously connections were successfully initiated and I was able to post batches to Accounts Payable. But now initiating the connection fails with the following error:
System.MissingMethodException: Method not found: 'ACCPAC.Advantage.DBLink ACCPAC.Advantage.Session.OpenDBLink(ACCPAC.Advantage.DBLinkType, ACCPAC.Advantage.DBLinkFlags)'.
Intellisense and ReSharper's decompile functionality can easily find the Session.OpenDBLink
method, so why is it missing during runtime?
Could it be pulling the wrong assembly from the Global Assembly Cache? What is the best way to resolve that without breaking other applications that require those assemblies?
Another Sage third-party developer brought up a .Net issue that sounds like what you're experiencing. This is what they had to say on the Sage City forums (Sage City Post):
Edit: Another option would be to use the COMApi interface via .Net.