The .NET interop type cannot be used in code for the Classic

Tarek_Demiati
Member Posts: 112
I've create a variable in NAV as DotNet, pointing to a .NET assembly in NAV2009R2
When I run this single line of code I end up with the error bellow
Questions : - What .NET interop type are not supported in the Classic CSide runtime
- Where can I view the type of this .NET interop (sorry guys I'm not familiar with Visual Studio yet!)
- Is there a way to get the Classic CSide client support any type ? via CASTing or something else ...
Microsoft Dynamics NAV Classic
The .NET interop type cannot be used in code for the Classic CSide runtime.
OK
When I run this single line of code I end up with the error bellow
Questions : - What .NET interop type are not supported in the Classic CSide runtime
- Where can I view the type of this .NET interop (sorry guys I'm not familiar with Visual Studio yet!)
- Is there a way to get the Classic CSide client support any type ? via CASTing or something else ...
IEngineLoader.GetEngineObject('DEMO', '0', '0');
Microsoft Dynamics NAV Classic
The .NET interop type cannot be used in code for the Classic CSide runtime.
OK
0
Comments
-
It's simple .. the "datatype" DotNet cannot run under the classic client. You're trying a "RUN" of a codeunit or whatever? it's just not possible. You have to make sure you're running under the RTC before you're able to run your code with that DotNet-variable.. .
- What .NET interop type are not supported in the Classic CSide runtime
None.
- Where can I view the type of this .NET interop (sorry guys I'm not familiar with Visual Studio yet!)
Nowhere :-).
- Is there a way to get the Classic CSide client support any type ? via CASTing or something else ...
Nope.
hm .. quite a negative answer ;-).
keep in mind that NAV7 isn't going to support the classic runtime anymore .. so supporting .Net INterop in classic doesn't make sense in the long run...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