Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

.NET Framework 4.0

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

  • John Sturmer Profile Picture
    John Sturmer 65 on at
    Re: .NET Framework 4.0

    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 :(

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: .NET Framework 4.0

    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
    John Sturmer 65 on at
    Re: .NET Framework 4.0

    Yes.

    I am on GP2010

    The message specifically references the Framework version.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: .NET Framework 4.0

    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
    John Sturmer 65 on at
    Re: .NET Framework 4.0

    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
    Community Member Microsoft Employee on at
    Re: .NET Framework 4.0

    I have been successful with compiling using .NET 4.0.

    What issues specifically are you having?

    Regards,

    Aaron

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans