NAS Unable to import XMLs from Shared Folder

chiptesandeepchiptesandeep Member Posts: 12
edited 2014-12-11 in NAV Three Tier
Hi,

Trying to import XML from Shared folder through NAS(Code Unit is used). JOB QUEUE unable to import XML & showed following error in Log entries

Microsoft Dynamics NAV

Microsoft Dynamics NAV Server attempted to issue a client callback to create a DotNet object: System.IO.Directory (CodeUnit 55555 Test XML Import Process). Client callbacks are not supported on Microsoft Dynamics NAV Server.
OK

Following DotNet Datatype variable was used in Codeunit :

Name DataType Subtype
SF_File DotNet System.IO.File.'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
SF_Folder DotNet System.IO.Directory.'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
SF_List DotNet System.Collections.Generic.List`1.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
SF_Obj DotNet System.Object.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
SF_Path DotNet System.IO.Path.'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
Sandeep Chepte

Comments

  • BardurKnudsenBardurKnudsen Member, Microsoft Employee Posts: 137
    Sounds like you have declared the DotNet object to run client-side?
    Bardur Knudsen
    Microsoft - Dynamics NAV
  • chiptesandeepchiptesandeep Member Posts: 12
    Yes...

    For getting files Used : SF_File DotNet System.IO.File.'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

    Initially Propety for variable : RunOnClient - No , but when I obseved NAS is not working properly Changed it To "Yes".

    Still same problem.
    Sandeep Chepte
  • BardurKnudsenBardurKnudsen Member, Microsoft Employee Posts: 137
    Well, then that's the error. You cannot run a client-side addin from a NAS, as it isn't associated with a client session.
    The first error you got: On what statement does it fail?
    Bardur Knudsen
    Microsoft - Dynamics NAV
Sign In or Register to comment.