GP 2016 - Upgrading to Year End MicrosoftDynamicsGP16-KB4046341-ENU An error occurred while loading or initializing an addin - Can't login to GP

Question Status

Suggested Answer
CateMM asked a question on 7 Dec 2017 2:37 PM

The full error is... An error occurred while loading or initializing an addin.  Ask your administrator to check the Windows event log for more details.  Dynamics will now close.

Here is the windows event log...

The description for Event ID 0 from source Microsoft Dexterity cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event:

An exception occurred while trying to load or initialize the addin located at DocAttach.

Exception Details:
System.MissingMethodException: Method not found: 'IsFileReadOnlyFunction FormFunctions.get_IsFileReadOnly()'.
at Microsoft.Dynamics.GP.DocAttach.GPAddIn.Initialize()
at Microsoft.Dexterity.Bridge.AddinManager.LoadAddin(String name, Type type, Boolean checkPlatformAttribute, Int32 currentDexPlatform)

the message resource is present but the message is not found in the string/message table

Things I have tried to do:

Restore backup and reinstall - Did not work

Remove the DocAttach and Bridge DLLs and reinstalled - Did not work

Did a repair on my .Net Framework - Did not work

Reply
Béat Bucher responded on 8 Dec 2017 1:34 PM

Hi Cate,

Sounds like an OS permission issue.. How did you apply the service pack ? was it installed with elevated Admin privileges ? Do you start the GP client with Admin mode permission ?

Reply
CateMM responded on 8 Dec 2017 7:13 PM

I have full Admim rights to the VM, I installed the update with elevated Admin privileges and I started GP client with Admin mode permission and I still get the error.  Why can I run Dyn Utilities without an issue yet I can't open the program?

Reply
Béat Bucher responded on 11 Dec 2017 11:49 AM

Can you please check your Addon folder in GP and list how many files are in there ?

Reply
CateMM responded on 11 Dec 2017 1:08 PM

I have 67 files of which 59 are 3rd Party DLLs

Reply
Béat Bucher responded on 11 Dec 2017 1:58 PM

Sorry if I misspelled the folder name.. which should be 'Addins' (not Addon), and that folder usually contains at least 4 DLL's and depending on your 3rd party products, could be several more, bout I doubt that it's that much as you reported..

Reply
CateMM responded on 11 Dec 2017 4:26 PM

I did check the Addins folder and there are 67 items of which 58 are our 3rd Party DLLs.  The DLLs that I don't know what they are, are as follows:  

edtFTPnetPRO.dll

FileHelpers.dll

GPConnNet.dll

InventoryActualUsage.dll

LogFile.dll

LumenWorks.Framework.IO.dll

MicrosoftDynamics.GP.PreviewPane.dll

ProductmovementReport.dll

SqlUtilities.dll

Reply
Kirk Livermont responded on 11 Dec 2017 6:18 PM

Cate,

I agree with Béat that this sounds like a Windows Permissions issue. If I was in this situation I would use Process Monitor to trace what file(s) were having access denied. docs.microsoft.com/.../procmon

Best regards,

Kirk

Reply
Suggested Answer
Béat Bucher responded on 12 Dec 2017 7:25 AM

Cate,

That sounds like a lot of DLL's in the Addins folder... On my GP2016R2 instance, I've 14 files, from which half are from 3rd-party apps, the reminder being default setup files from GP..

I'm wondering about your error message regarding the DocAttach.GPAddIn & Bridge.AddInManager references.. Are you using a 3rd-party document management tool ?  I'd open a call with the ISV support team if that's the case, because I don't think this is a native GP issue.. Like Kirk said, my feeling goes towards a file access/load permission issue.

Reply
Suggested Answer
Béat Bucher responded on 12 Dec 2017 7:25 AM

Cate,

That sounds like a lot of DLL's in the Addins folder... On my GP2016R2 instance, I've 14 files, from which half are from 3rd-party apps, the reminder being default setup files from GP..

I'm wondering about your error message regarding the DocAttach.GPAddIn & Bridge.AddInManager references.. Are you using a 3rd-party document management tool ?  I'd open a call with the ISV support team if that's the case, because I don't think this is a native GP issue.. Like Kirk said, my feeling goes towards a file access/load permission issue.

Reply