web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

DotNet Variable erroring out when installed in the client RTC

(0) ShareShare
ReportReport
Posted on by 5,136

Ok! I am really puzzled and need your input experts! I have a dotnet assembly (dll) that I wrote in C#.  When testing against the dev pc that has both the CLient RTC and the SERVEr Nav, all I had to do is copy the dll into the add-ins folder of the CLient RTC program.  Then in the C/AL code, I created the variable that points to dotnet and the name of the assembly found in the Dynamics Tab.  Then I made sure to choose RunonClient=yes.  To Instantiate, I just called <variablename> := <variableName>.Class();

All is well and it worked on two dev pcs that have both client Rtc and Server Nav.

Now, I am testing to make sure it works in pc where only Client RTC is installed.  All I did was copy the dll into the add-ins folder of that client rtc's program folder.  But when I test, I am getting an error: The message is for C/AL programmers: Cannot create an instance of the following .Net framework object: assembly <variablename>, version.....

Please help shed some light!

*This post is locked for comments

I have the same question (0)
  • Verified answer
    keoma Profile Picture
    32,729 on at

    hi,

    check if the dll is blocked.

    explorer - file - file properties:

    general tab: is there a blocked flag?

    follow blogs.msdn.microsoft.com/.../unblockingdownloadedfile

    also check the settings on the security tab.

    if that does not work, recompile the nav object on the customers pc/system. edit the nav object, check if the dll is visible in the variable dll list.

    also check, if all referenced (system) dlls are available on the target system.

  • Suggested answer
    Alexander Ermakov Profile Picture
    28,096 on at

    Generally, it should not depend on the fact that only Client is installed. As Jonathan mentioned, check the availability of the DLL file and ensure user has enough rights to access the folder and the file. What operation system is used on a pc that you have issues? Try also registering the dll manually.

  • Verified answer
    mbr Profile Picture
    5,136 on at

    Hi Jonathan.....OMG! I just figured out my problem.  I was looking at the wrong FILE EXPLORER. I didn't realize that the dll was NOT in the add-ins folder of the client pc.  I was stressing out for a long time.  But when I read your response....I looked again...and realized I didn't have the dll copied over into the client pc.  Thank you soooo very much!

  • mbr Profile Picture
    5,136 on at

    Thank you Alexander!  It was an overlook on my part.  That's what I was thinking too so I was soo puzzled.  But I realized after Jonathan's response that I was looking at the wrong file explorer.....different pc. Ahh....the confusion when you have multiple Remote desktops opened. :(  

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans