Hello,
I try to use a .NET object in NAV but have a problem. With simple code, it works : I can instantiate a object, and call a method which gives back the string I gave to the constructor. But now I have a program in C# which communicates with MS Project. When I tried with a code that only connects and gives back the projects' list in a string I obtain an error message (see screenshots below). The program works when I use it in a .NET program.
I think it is caused by the genericity used by the Load<> method. Is it right ?
Has someone any idea of a solution ?
Thanks![:smile: :smile:]()
![grnypj3u2o1r.png]()
![as62ynoenz4j.png]()
![2shy2dd81jhp.png]()
![jt2w8zumtcee.png]()
![n2mxnednch1w.png]()
![a0gcnme0wftt.png]()
I try to use a .NET object in NAV but have a problem. With simple code, it works : I can instantiate a object, and call a method which gives back the string I gave to the constructor. But now I have a program in C# which communicates with MS Project. When I tried with a code that only connects and gives back the projects' list in a string I obtain an error message (see screenshots below). The program works when I use it in a .NET program.
I think it is caused by the genericity used by the Load<> method. Is it right ?
Has someone any idea of a solution ?
Thanks






