I am using the standard dotNet interop libraries/variables to communicate with outlook (Microsoft.Office.Interop.Outlook, Version=15.0.0.0).running well while using the client, but, when using the NAS to call the GetMail functions (RunOnClient=No), I get the following error:
Then again, works perfectly when running on client but just doesn’t work on NAS, with the same error
NAS Server is on the NAV Server, which is where I am testing, with Outlook installed there. Also checked the DCOM permissions on the Server Components and looks good (although when running on a client, the application asks for my permission).
Also, same error happens with NAV 2016.
[8o|]
Thank you again
(gmail was sending DUG notification emails to the spam folder, hence not seing this before)
they are being created the same way, only one contructor… guess I am missing something here? can you please point me in the right direction? google isn’t doing the trick…
i did a lot of tests. repeated your trials. didn’t work too, no way. so i think, the reason for not working could be that it’s not a common assembly like mscorlib or system - i tried with them, no problems at all - it is an interop assembly. means, it was created from the automation, a kind of a wrapper for usage in .net apps. works well in .net apps, but not in that case.
so, as a solution/workaround i recommend to develope a new .net assembly referencing the original outlook automation or the interop lib. then try again with that new assembly instead of the interop.