How do I make my custom dll run server side?

Sunset
Member Posts: 201
For an integrationproject we have created our own little C# dll to handle some of the functionality. Running this on client side works like a charm 8)
However, for various reasons we want this to run server side, but for some reason this is not possible, and I can't find any documentation on what I am doing wrong ](*,)
Whenever we try to use it, it fails with "cannot create an instance of the following .net framework object....." After various tests with signing etc we decided to go back to basics, and simply create an Hello World dll. But that gets the same error :roll:
The dll has been copied to the server\Service\Add-ins folder (as well as client while coding). in NAV a variable has been declares as Hello and the following code made:
Hello := Hello.Class1;
MESSAGE(Hello.hi);
Running on server side it fails, and running on client side it works perfectly.
Could someone please tell me that I'm not going nuts, but just am a fool for forgetting <enter solution here>. Failing that, point me to some documentation on what I need to read up on [-o<
However, for various reasons we want this to run server side, but for some reason this is not possible, and I can't find any documentation on what I am doing wrong ](*,)
Whenever we try to use it, it fails with "cannot create an instance of the following .net framework object....." After various tests with signing etc we decided to go back to basics, and simply create an Hello World dll. But that gets the same error :roll:
The dll has been copied to the server\Service\Add-ins folder (as well as client while coding). in NAV a variable has been declares as Hello and the following code made:
Hello := Hello.Class1;
MESSAGE(Hello.hi);
Running on server side it fails, and running on client side it works perfectly.
Could someone please tell me that I'm not going nuts, but just am a fool for forgetting <enter solution here>. Failing that, point me to some documentation on what I need to read up on [-o<
Don't just take my word for it, test it yourself
0
Best Answer
-
Nevermind. It turned out to be some mixup in the installation :oops: We tried it in a setup with various NAV servers running, but when moving it to a virgin setup it worked as expected.Don't just take my word for it, test it yourself0
Answers
-
Nevermind. It turned out to be some mixup in the installation :oops: We tried it in a setup with various NAV servers running, but when moving it to a virgin setup it worked as expected.Don't just take my word for it, test it yourself0
-
Hi can you provide me how can i make this dll. I am on Nav 2017 and I want to crate a .net dll for handling with xml But I want to use this on codeunit.0
-
Don't just take my word for it, test it yourself0
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