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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

.net Framework Interoperability -

(1) ShareShare
ReportReport
Posted on by

I'm trying to access one of my sample dll in Dexterity but can't get it to work for some reason. 

namespace Web.Dexterity
{
    public class Class1
    {
        public Class1()
        {}

        public int getSum(int a, int b)
        {
            return a + b;
        }

    }
}


and then reference the dll in dexterity and using following code in dex. 

using PaperSave.Web.Dexterity;

local Class1 c;

Using statement compiles just fine. meaning my dll is referenced properly but Class1  is giving an error. Error is : Unknown Identifier Class1

Type incompatibility' Cannot find field Class1'

.NET dll is compiled any cpu in framework 4. 

I refered following article as a reference.

https://community.dynamics.com/gp/b/gpmarianogomez/archive/2014/10/29/microsoft-dynamics-gp-2015-developer-39-s-preview-net-framework-interoperability-part-3

Any thoughts ?

Himal

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Thank you all readers :) Finally I'm able to figure it out. I end up putting my custom dll in the same folder as dexterity. It was giving me warning that it can't load my assembly.  and  who cares for warnings :) now i does.

    Also, it doesn't care what you write in using statement. it won't give you compilation error  if you write any junk in there. I didn't realize up until now.

    Hopefully this would help someone like me.

    Thanks,

    Himal

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans