Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

GP 2015 R2 Crashing on startup after deploying GP Addin

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

We're having an issue at a client site with one of our GP Addins for Gp2015 R2. GP crashes on startup with the generic error loading the GP Addin. We check the details in the event viewer and it appears as follows

Application: Dynamics.exe

Framework Version: v4.0.30319

Description: The process was terminated due to an unhandled exception.

Exception Info: System.IO.FileLoadException

Now, we've seen this before and it had to do with missing reference dll's. We have confirmed that.

Everything appears to be in place. The client is running Windows Server 2012 R2, and has the 4.6 .net framework installed. We are targetting the 4.5.1 framework in the GP Addin. We've tried compiling on multiple environments, even creating a blank addin that does absolutely nothing, and still we get the crash.

If anyone has ideas on how to further troubleshoot this let me know.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: GP 2015 R2 Crashing on startup after deploying GP Addin

    Hi David,

    This was the correct solution, turns out the debug dll we sent was not signed. I recompiled the release version, code signed it and it worked. Thanks for the assist.

  • Suggested answer
    Manikandan Profile Picture
    Manikandan 2,845 on at
    RE: GP 2015 R2 Crashing on startup after deploying GP Addin

    You can copy the dll files into GP installation file instead of Addin folder and try.

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,965 Most Valuable Professional on at
    RE: GP 2015 R2 Crashing on startup after deploying GP Addin

    I would check with Microsoft Dynamics GP developer support.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: GP 2015 R2 Crashing on startup after deploying GP Addin

    Hi David,

    All the dll's we ship are code signed. Any other thoughts on what would cause this?

    Thanks

    Andrew

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,965 Most Valuable Professional on at
    RE: GP 2015 R2 Crashing on startup after deploying GP Addin

    If you don't have the blocking issue, then codesigning is not the fix.

    You can sign dlls using the /S parameter on the DAG.EXE tool. Then you can codesign with a certificate using the signtool.exe. I would recommend these steps if creating a commercial product. It is not so important for customisations.

    David

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: GP 2015 R2 Crashing on startup after deploying GP Addin

    Hi David,

    Thanks for the reply. When i check the properties of the dll there is nothing indicating that it's "blocked".

    It's not set to read-only and there are no special permissions granted to the file. When you're referring to a "codesigned" dll what do you mean by that? I'm sorry for all the questions here i'd just like to get this resolved.

    Thanks

  • Verified answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,965 Most Valuable Professional on at
    RE: GP 2015 R2 Crashing on startup after deploying GP Addin

    Hi Andrew

    Right click to get the file properties of the dll.

    If it shows as blocked, click the unblock button.

    The only way to fix this is the have a fully codesigned dll.

    David

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans