DLL Hell
Cyberghost
Member Posts: 46
Hi
I've created a C# DLL on my own pc (VM to be accurate) which has a simple drag and drop function in it. I've added this to a page in NAV and it works perfectly.
Now the problem. When I try to use this DLL on a different server, the page does not compile. It does not seem to be able to understand the DLL, even to the point of not being able to drill now into the command using F5.
I have put the DLL in both the server and the rtc Addins folder. I have also added the details to the Control Add Ins page of NAV.
Any help or pointing to the right direction would be appreciated!
TIA
Chris
I've created a C# DLL on my own pc (VM to be accurate) which has a simple drag and drop function in it. I've added this to a page in NAV and it works perfectly.
Now the problem. When I try to use this DLL on a different server, the page does not compile. It does not seem to be able to understand the DLL, even to the point of not being able to drill now into the command using F5.
I have put the DLL in both the server and the rtc Addins folder. I have also added the details to the Control Add Ins page of NAV.
Any help or pointing to the right direction would be appreciated!
TIA
Chris
"When you eliminate the impossible, whatever remains, however improbable, must be the truth" - Sherlock Holmes
"God and developers are in a constant battle. Developments to make their applications more idiot-proof, and God to produce bigger idiots!"
"God and developers are in a constant battle. Developments to make their applications more idiot-proof, and God to produce bigger idiots!"
0
Best Answer
-
Hi all
Thanks for your help. I tried REGASM which came up with the error "REGASM Error ra0000 no types were registered"
A search on this lead to setting the ComVisible property to "true" in the assemblyInfo.cs file, which when applied to the dll, fixed the issue without having to run REGASM again.
Cheers
Chris"When you eliminate the impossible, whatever remains, however improbable, must be the truth" - Sherlock Holmes
"God and developers are in a constant battle. Developments to make their applications more idiot-proof, and God to produce bigger idiots!"5
Answers
-
Is this a DotNet control, or COM?Kyle Hardin - ArcherPoint0
-
DotNet. I'm working with NAV 2016"When you eliminate the impossible, whatever remains, however improbable, must be the truth" - Sherlock Holmes
"God and developers are in a constant battle. Developments to make their applications more idiot-proof, and God to produce bigger idiots!"0 -
Check file properties. Is it blocked?
Does it reference additional dlls, others thank standard dotnet dlls which are loaded in gac?
Develope another simple dll. Check If that works correctly on other systems.
Is the same .net version installed on both systems?best regards
Franz Kalchmair, MVP
Alias: Jonathan Archer
please like / agree / verify my answer, if it was helpful for you. thx.
Blog: http://moxie4nav.wordpress.com/0 -
When you declared the DotNet variable in your page, did you tell it to run on the client or on the NST?
If it's on the NST, then make sure the NST Service Account (might be an active directory account, might be NETWORK SERVICE) has read access to the Add-Ins directory where the DLL is located.
If it's on the client, then make sure the user's account has read access to the Add-ins directory.
And the last thought I have is that Visual Studio probably did something to register the DotNet control on your machine, and that step hasn't happened on the NST (or other client machines). You may need to use REGASM on it to get it registered.Kyle Hardin - ArcherPoint0 -
Hi all
Thanks for your help. I tried REGASM which came up with the error "REGASM Error ra0000 no types were registered"
A search on this lead to setting the ComVisible property to "true" in the assemblyInfo.cs file, which when applied to the dll, fixed the issue without having to run REGASM again.
Cheers
Chris"When you eliminate the impossible, whatever remains, however improbable, must be the truth" - Sherlock Holmes
"God and developers are in a constant battle. Developments to make their applications more idiot-proof, and God to produce bigger idiots!"5 -
will you share the DLL with us please.....0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 328 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
