Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Visual Studio Tools for GP fails during startup without error

(0) ShareShare
ReportReport
Posted on by

Environment: GP 2010 code upgraded to 2015

We have two Add-In DLLs that register events with GP.

DLL 1: registers an event handler for AfterModalDialogEventArgs for SOP Batch Entry

DLL 2: registers a menu item function with Menus for Visual Studio Tools (VSIT)

We also have DLL 3 that is the sample from VSIT.

Problem: If we place DLL 1 into the AddIns folder, it runs its Initialize method, but it seems to error, or block others from running. If placed by itself or with DLL 3 into AddIns, either or both will initialize. The introduction of DLL 1 into the AddIns folder causes it to run but no others. (used MessageBoxes as simple way to know which Initialize ran). In other words, it seems that DLLs 2 and 3 play nice, but DLL 3 is disruptive.

Question: How can I debug this to find the problem with DLL 3? Any suggestions as to what might cause such a problem?

Thanks in advance for any help.

*This post is locked for comments

  • Randy Coates Profile Picture
    on at
    RE: Visual Studio Tools for GP fails during startup without error

    Thanks, Mariano and David. This is a new issue, but I am not convinced that it is a VSIT issue. The add-ins associated with VSIT (DLLs 2 and 3) all place nicely together. The problem occurs when I add the DLL 1 which uses standard GP code (just use Application.Dynamics and Microsoft.Dexterity.Bridge, not Application.MenusForVisualStudioTools).

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,012 Most Valuable Professional on at
    RE: Visual Studio Tools for GP fails during startup without error

    Hi all.

    This case was resolved by updating the .Net Framework version and re-adding all the references back to ensure they were the correct versions.

    David.

  • Mariano Gomez Profile Picture
    26,225 on at
    RE: Visual Studio Tools for GP fails during startup without error

    Adding David Musgrave to this discussion. I believe he just updated his VSIT samples, but I cannot be sure. All in all, make sure you are running the latest VSIT Build 12 components

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,207 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,923 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans