Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

GP 2015 DAG Error: Could not load type Microsoft.Dynamics.GP.BusinessObjects.Payroll.Timecard

Posted on by 2,281

I'm attempting to run the GP 2015 DAG for the first time on a GP 2015 R2 machine:

dag.exe 0 "C:\Program Files (x86)\Microsoft Dynamics\GP2015\Dynamics.set" /F

 

And am getting this error during the "Generating IL code" step at 69%:

System.TypeLoadException: Could not load type 'Microsoft.Dynamics.GP.BusinessObjects.Payroll.Timecard' from assembly 'Microsoft.Dynamics.GP.BusinessObjects, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

 

Any thoughts or suggestions?

I tried copying the Microsoft DLLs from the AddIns folder to the VS Tools directory, but same issue.

*This post is locked for comments

  • Josh P Profile Picture
    Josh P 2,895 on at
    RE: GP 2015 DAG Error: Could not load type Microsoft.Dynamics.GP.BusinessObjects.Payroll.Timecard

    Thanks for the info. I usually only play with the DAG with custom dictionaries (Dex for UI and c# for logic), but that makes sense to me.

  • steveendow Profile Picture
    steveendow 2,281 on at
    RE: GP 2015 DAG Error: Could not load type Microsoft.Dynamics.GP.BusinessObjects.Payroll.Timecard

    Hi Josh,

    Thanks for the reply.  Yes, the dictionary 0 value was correct, as I was working with the core Dynamics dictionary.

    The problem is that the GP 2015 VS Tools SDK requires you to manually copy a few DLL files from the GP application directory to the SDK directory (wherever the DAG.exe is located).  If you don't, you get that useless error message and it crashes.

    I updated my blog post listing the required DLLs.  Definitely NOT documented in the VS Tools documentation.

    dynamicsgpland.blogspot.com/.../gp-2015-dagexe-crashes-could-not-load.html

  • Josh P Profile Picture
    Josh P 2,895 on at
    RE: GP 2015 DAG Error: Could not load type Microsoft.Dynamics.GP.BusinessObjects.Payroll.Timecard

    Are you sure using the product id of 0 is correct there?

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans