Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

How to create a automation variable from dll file?

Posted on by Microsoft Employee

Hi All,

I have a system.net.http dll in nav 2016 and i want to use same dll in nav 2009 R2 but when i import this it's giving higher version load error.

So i decide to create a automation variable for that dll how to achieve this?

how to create automation variable from dll file.

Thank You

Ramesh.

*This post is locked for comments

  • Verified answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: How to create a automation variable from dll file?

    hi ramesh in that case you need an automation version of the .net dll. so assuming you have the source code of the .net assembly follow e.g. this link:

    www.simple-talk.com/.../build-and-deploy-a-net-com-assembly

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to create a automation variable from dll file?

    Hello Suresh,

    above link i used for to get exact error message actual message it is showing internal system error but this is incorrect, right one is when i send same customer to magento  by above dll i got exact error is same email id will not use this is correct.

    please let us know without dll can we get exact exception or error message in nav 2009 r2 not an internal system error.

    Thank You

    Ramesh

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to create a automation variable from dll file?

    Hi Suresh,

    We have one codeunit by this we are connecting to magento but i want to run this codeunit by NAS.

    So here i used dotnet variables for getting exact error message by below link

    http://www.dynamics.is/?p=1255

    but here variable under .net this is not going to work in nav 2009 r2 by nas running so i need to create automation variable for this dll file.

    can you please give suggestion to do this automation variable creation for dll file.

    Thank you

    Ramesh

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: How to create a automation variable from dll file?

    Ramesh,

    Can you please provide the steps you did and the screenshot of the error message

  • Binesh Profile Picture
    Binesh 7,885 on at
    RE: How to create a automation variable from dll file?

    Hello Ramesh,

    Not sure, but you can try in test DB,

    -> De-Assemble dll.

    -> Open in VS and copy solution in VS2008.

    -> Build your dll.

    -> Now you can add as a control add-in.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans