Options

Custom DLL in NAV 2009 R2

zychzych Member Posts: 20
edited 2011-06-21 in NAV Three Tier
Hi All,

I have a problem when using custom DLL in NAV 2009 R2. I trying to create simple .net dll

Below is .net code
namespace TestDotnet
{
    public class Class1
    {
        public int testmultiply(int a, int b)
        {
            return a * b;
        }
    }
}

when I try to use it in RTC , I got below error "Cannot create an instance...."
below is my NAV code
test := test.Class1();

result := test.testmultiply(2,3);

Please help. Thanks

Best Answer

  • Options
    zychzych Member Posts: 20
    Answer ✓
    Hi Kine,

    Just check I only put the dll on the client side, i forget to put on the NAV Server folder. After I copy dl, it's work.

    Thanks

Answers

  • Options
    kinekine Member Posts: 12,562
    Have you correctly registered the assembly in NAV? Where the DLL is placed?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    zychzych Member Posts: 20
    Answer ✓
    Hi Kine,

    Just check I only put the dll on the client side, i forget to put on the NAV Server folder. After I copy dl, it's work.

    Thanks
Sign In or Register to comment.