Error Registering .net Com Nav 2009!!!!

HanenHanen Member Posts: 281
edited 2010-05-07 in NAV Three Tier
Hello,

I'm consuming a wcf service in a class library c# in order to register the DLL into NAV 2009 (Registring new control) but NAV returns an error message "Could not Register the OLE Control"!!

Anyone can help me pleaaaaaaaaaaaase :( :oops:
Regards

Hanen TALBI

Comments

  • ara3nara3n Member Posts: 9,256
    you need to register the .NET dll manually from command prompt using regasm32 yourdllfile.dll
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • HanenHanen Member Posts: 281
    I've tried this:

    gacutil /i NavsionControlLibraryWCF.dll
    REGASM "C:\TFsProjects\WCF-Hanen\ClassLibrary1\obj\Debug\NavsionControlLibraryWCF.dll" /tlb:NavsionControlLibraryWCF.tlb

    and finally regsvr32 mydll but it didn't work :(

    Help!!!!!
    Regards

    Hanen TALBI
  • ara3nara3n Member Posts: 9,256
    Try with /codebase
    REGASM "C:\TFsProjects\WCF-Hanen\ClassLibrary1\obj\Debug\NavsionControlLibraryWCF.dll" /tlb:NavsionControlLibraryWCF.tlb  /codebase
    
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.