Hello,
I’m using a library that manipulates project files (mpp, mpx, xml, etc) in c#. http://mpxj.sourceforge.net/
This library is written and maintained in Java, however this is no barrier to using its functionality in .Net. When I use it directly with .net, it is working all fine. When I run a delphi application and invokes a .net interface with Hydra, I’m getting a lot of errors as soon as I use any method from this library.
Errors:
'O inicializador de tipo de 'net.sf.mpxj.ProjectProperties' acionou uma exceção.
System.TypeInitializationException: O inicializador de tipo de 'IntegerCache' acionou uma exceção.
---> System.TypeInitializationException: O inicializador de tipo de 'sun.misc.VM' acionou uma exceção.
---> System.TypeInitializationException: O inicializador de tipo de 'java.lang.Props' acionou uma exceção.
---> System.ArgumentException: Caracteres inválidos no caminho.
em System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
em System.Security.Permissions.FileIOPermission.CheckIllegalCharacters(String[] str)
em System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
em System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
em System.IO.Directory.InternalGetCurrentDirectory(Boolean checkHost)
em java.lang.VMSystemProperties.initCommonProperties(Properties )
em java.lang.VMSystemProperties.initProperties(Properties )
em java.lang.Props..cctor()
--- Fim do rastreamento de pilha de exceções internas ---
em java.lang.System.lineSeparator()
em sun.misc.VM..cctor()
--- Fim do rastreamento de pilha de exceções internas ---
em sun.misc.VM.getSavedProperty(String key)
em java.lang.Integer.IntegerCache..cctor()
--- Fim do rastreamento de pilha de exceções internas ---
em java.lang.Integer.valueOf(Int32 i)
em net.sf.mpxj.ProjectProperties..cctor()'
Could anyone help me?
Thanks!