.NET DLL Registration
Soumyadip
Member Posts: 209
Hi All,
I have created a .NET DLL via Class Library Project in C# using .NET FrameWork 2.0. I intend to send some info from NAVas parameter to one of it's function and as a return type want to receive a TRUE/FALSE bolean value from the function to NAV.
When I am trying to register that DLL from NAV (Tool->Custom Controls->Controls->Browse) , it is giving me an error "Could Not Register the OLE Control".
Please help.
Thanks in Advance
Soumya
I have created a .NET DLL via Class Library Project in C# using .NET FrameWork 2.0. I intend to send some info from NAVas parameter to one of it's function and as a return type want to receive a TRUE/FALSE bolean value from the function to NAV.
When I am trying to register that DLL from NAV (Tool->Custom Controls->Controls->Browse) , it is giving me an error "Could Not Register the OLE Control".
Please help.
Thanks in Advance
Soumya
0
Comments
-
If you want to see your component as an automasion then you have to reg. your .dll like this:
regasm c:\<path>\Filnavn.dll /tlb:filnavn.dll.tlb /codebase
/Andhilda0 -
Thanks Andhilda...
It is registered now and I can see it in Automation Server but i can't see any class under it.
I think its a prob with the .NET code....
can you suggest some tips..
Thanks
Soumya0 -
Can anybody help?0
-
Hi,
as far as I know, you need a COM-Class for Automation Server Controls in NAV. .NET classes don't work!
Maybe this helps you...0 -
I'm using your fantastic control but when i use it in my form there is a problem.
The subform shows an subarea and 123 numers in ...
Why?
What I do to remove it?0 -
You need to create an interface, in order to make com object visible for nav:
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
public interface INavAutomation
{
string NavMethod();
}
[ClassInterface(ClassInterfaceType.None)]
public class NavAutomationClass : INavAutomation
{
public string NavMethod()
{
return "Hello Dynamics Nav";
}
}0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 322 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions