Nav 2018 JobQueue dll fail

DanielF
Member Posts: 21
Hello all,
I'm facing following problem:
I've written a dll which I'm using as DotNet Variable inside C/AL. Inside constructor of my dll I create a instance of an object which is refering to another dll.
When running my C/AL Code in User Mode it works as defined.
When running my C/AL Code as Job Queue I'm facing a problem creating Instance of my object inside my first dll.
Running JobQueue in User Mode of DotNet Variable won't work.
Running JobQueue in NOT User Mode causes Error when creating instance of DotNet Variable.
Can someone help or has some experiance?
I'm thinking of somewhat like putting my second dll inside my first dll in my C# Project. Because I'm guessing that call from dll to another dll is forbidden by Service Tier? If my assumption is right has someone a guide for putting dll inside dll to create only one dll?
Kind Regards and thanks in advance.
I'm facing following problem:
I've written a dll which I'm using as DotNet Variable inside C/AL. Inside constructor of my dll I create a instance of an object which is refering to another dll.
When running my C/AL Code in User Mode it works as defined.
When running my C/AL Code as Job Queue I'm facing a problem creating Instance of my object inside my first dll.
Running JobQueue in User Mode of DotNet Variable won't work.
Running JobQueue in NOT User Mode causes Error when creating instance of DotNet Variable.
Can someone help or has some experiance?
I'm thinking of somewhat like putting my second dll inside my first dll in my C# Project. Because I'm guessing that call from dll to another dll is forbidden by Service Tier? If my assumption is right has someone a guide for putting dll inside dll to create only one dll?
Kind Regards and thanks in advance.
0
Comments
-
Make sure the object is not RUNONCLIENT and that both DLL's are deployed on the middle-tier. All should be working like normal.0
-
Thanks for your answer Duikmeester. That setup I've tested - because the error creating instance of object still remains is a clue that my dll isn't programmed correctly. So I have to check references inside my dll?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