What is the best way to check if a dotnet assembly can be used on client side?
I'm using the System.IO.File assembly to move a file on client side.
Of course this is not possible in combination with the new NAV2013 WebClient.
So I want to check if the assembly can be used.
I thought I could use the CANLOADTYPE for this but is seems not to work:
MESSAGE(FORMAT(CANLOADTYPE(IOFile))); // <- Says: Yes
IOFile.Exists(''); // <- Says: The operation cannot complete because it uses a feature that is not supported (.NET Framework Interoperability.)
Till now I have placed a command in a codeunit.run to see if it succeeds.
This is working but it's not ideal because it can't be used in a transaction.
Is there a better way to do this?
Answers
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Object Manager
I want to create new directory at shared path from web client, is it possible to do?
Thanks in Advance