NAV 2009 RTC-Enum,DateTime,Currency datatype access frm .NET

arindam
Member Posts: 176
Hi All,
NAV 2009 RTC is throwing error message when trying to access the following automation data type variables.
1. Enum
2. DateTime
3. Currency
These data type variables places a major part in our dll methods.
Following are the errors that NAV 2009 RTC showing up.
This message is for C/AL programmers: The call to member 'enumType' (Enum) failed: Method ‘Service.GetMethod.enumType’ not found Where enumType is of type Enum (Unmanaged)
This message is for C/AL programmers: The call to member 'dtDate' failed: Method ‘Service.GetMethod.dtDate’ not found Where dtDate is of type DateTime (Unmanaged)
This message is for C/AL programmers: The call to member 'Amount' failed: Method ‘Service.GetMethod.Amount’ not found Where Amount is of type Currency (Unmanaged)
I am not getting any error message with NAV 2009 Classic Version.
I have gone through forums and the experts are advising to change the data types in the dll since NAV 2009 RTC supports only managed code. But our dll which acts as a bridge between our service and our Navision 2009 RTC and we cannot change our Dll.
Please guide to overcome this issue and provide a valuable solution.
Thanks and Regards,
Arindam
NAV 2009 RTC is throwing error message when trying to access the following automation data type variables.
1. Enum
2. DateTime
3. Currency
These data type variables places a major part in our dll methods.
Following are the errors that NAV 2009 RTC showing up.
This message is for C/AL programmers: The call to member 'enumType' (Enum) failed: Method ‘Service.GetMethod.enumType’ not found Where enumType is of type Enum (Unmanaged)
This message is for C/AL programmers: The call to member 'dtDate' failed: Method ‘Service.GetMethod.dtDate’ not found Where dtDate is of type DateTime (Unmanaged)
This message is for C/AL programmers: The call to member 'Amount' failed: Method ‘Service.GetMethod.Amount’ not found Where Amount is of type Currency (Unmanaged)
I am not getting any error message with NAV 2009 Classic Version.
I have gone through forums and the experts are advising to change the data types in the dll since NAV 2009 RTC supports only managed code. But our dll which acts as a bridge between our service and our Navision 2009 RTC and we cannot change our Dll.
Please guide to overcome this issue and provide a valuable solution.
Thanks and Regards,
Arindam
0
Comments
-
Sounds like a problem that has been fixed in a very resent hotfix for NAV 2009 SP1. Check KB977606 on the hotfix server if the fix solves your problems. NAV 2009 (all versions) supports COM in both managed (for instance as a C# assembly that exposes a COM interface) and unmanaged (legacy code) implementations.
If the fix does not solve the problem in your application, it would be great if you coould send the COM signature for the relevant functions/properties (from the IDL file or from the typelibrary).
/Niels-Henrik_________________
Niels-Henrik Sejthen
Senior Software Developer
Microsoft Dynamics NAV
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.0 -
Hi,
I yet to check the hotfix released by MS. I shall keep you posted on the same.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
- 320 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