.NET interop created from ActiveX
xStepa
Member Posts: 106
Hi there,
i need to use an ActiveX dll on NST, so I need to convert it to dotNet. I tried to use tlbimp to convert it and at first it seemed, that I succeed. But NAV throws an error, that .NET framework object cannot be instantiated. All DLLs are on NST and accessible in development client. Has anyone some suggestion?
Thx


i need to use an ActiveX dll on NST, so I need to convert it to dotNet. I tried to use tlbimp to convert it and at first it seemed, that I succeed. But NAV throws an error, that .NET framework object cannot be instantiated. All DLLs are on NST and accessible in development client. Has anyone some suggestion?
Thx


Regards
xStepa
xStepa
0
Answers
-
Try to set property RunOnClient to Yes for variable AtouchDir.0
-
- Check if your DLL is strongly signed.
- If your code runs on client, you have to copy your DLL to publicly accessible folder (Add-ins folder in client folder is the best) - in that situation should be variable property RunOnClient set to Yes.
- If your code runs on server, you have to copy your DLL to publicly accessible folder (Add-ins folder in server folder is the best) - in that situation should be variable property RunOnClient set to No.0 -
Hi @lubost , thank you for your suggestions.
No, the DLL is not strongly signed, but tlbimp allows this option - but this DLL is used only in codeunit, not as a control on page, so this should not be a problem
Yes, I have also tested this option - I've copied it everywhere.
Yes, the DLLs (.NET and original ActiveX) are on NST and I see them in DEV client.
If you be so kind, you can test it yourself on your server - just try to construct AtouchDirClass ...
Sorry to admins, that I've uploaded it as PDF ...
ThxRegards
xStepa0 -
This is not my practice due to security reason. Sorry0
-
no problem, thank you anyway
Regards
xStepa0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions