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 4.0

(0) ShareShare
ReportReport
Posted on by 65

I am trying to write a GP AddIn using VS 2010.  I have run into a problem when I compile a 4.0 .DLL

Has anyone else been able to use 4.0 libraries in GP 2010?

*This post is locked for comments

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

    I have been successful with compiling using .NET 4.0.

    What issues specifically are you having?

    Regards,

    Aaron

  • John Sturmer Profile Picture
    65 on at

    When I copy the 4.0 .dll into the addins folder I get a messge at startup about the assembly being invalid.

  • Community Member Profile Picture
    on at

    Are you copying all the assemblies that you need?  If you reference other assemblies in your integration, they need to be copied as well.  

    What version of Dynamics are you on?

    If you change the .NET version back to 2.0 or 3.5, does the startup error go away?

  • John Sturmer Profile Picture
    65 on at

    Yes.

    I am on GP2010

    The message specifically references the Framework version.

  • Community Member Profile Picture
    on at

    John,

    I apologize, I mis spoke in my previous post.  I checked and I am compiling in .NET 3.5.  I think the issue has something to do with the GAC and that the assemblies are trying to be registered using the version that ships with 2.0 and worked throuhgh version 3.5.

    Everything has changed with .NET 4.0, including the GAC and the location withing the C:\Windows directory.  If you can register the assemblies using the new GAC, then you might be able to overcome the error.

    Aaron

  • John Sturmer Profile Picture
    65 on at

    I knew that, and that is the answer I expected.  I will give it a try but I don't know if using the GAC is the answer.  Sort of defeats the purpose of XCopy Deploy :(

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