Friday, November 26, 2010

Add-In Initialization Error when launching Microsoft Dynamics GP 2010

Lately, many users have reported getting the error depicted below after launching Microsoft Dynamics GP 10 with Service Pack 5 or Microsoft Dynamics GP 2010 with Service Pack 1:



Add-In Initialization Error
The error references the Microsoft.Dynamics.GP.OnlineServices.dll assembly file as the root cause of the problem. This assembly was shipped with Microsoft Dynamics GP 10 SP5 and is a part of the Dynamics Online Services application.

The error typically indicates that the add-in assembly is loaded, however, it most likely indicates that the Dexterity portion of the application, dictionary DO6499.dic, isn't loaded in the path found in the DYNAMICS.SET file -- which should have also generated a dictionary load error prior to receiving the above message -- or isn't loaded at all.

To fix this error:

1. Run a repair or update on the Microsoft Dynamics GP client under the Windows Control Panel. This will reinstall the Dynamics Online Services application dictionary and the assembly.

NOTE: You will not see this application in a list of selections as it appears to be a "default" application and it will reinstall itself.


However if you not interested in repairing the application and rather completely get rid of the Dynamics Online Services feature, then follow these steps:

1. Under the Microsoft Dynamics\GP folder, locate and delete the DO6499.dic dictionary file.

2. Remove all references of this product from the application launch file, DYNAMICS.SET.

6499
Dynamics Online Services
:C:Program Files/Microsoft Dynamics/GP/DO6499.DIC
:C:Program Files/Microsoft Dynamics/GP/Data/DO6499F.DIC
:C:Program Files/Microsoft Dynamics/GP/Data/DO6499R.DIC

NOTE: Don't forget to decrease the number of products by 1 in the DYNAMICS.SET file. Usually, this is the first entry in the launch file.

3. Locate the AddIns folder and delete the Microsoft.Dynamics.GP.OnlineServices.dll assembly file
4. Also remove the Application.DynamicsOnlineServices.dll from the GP installation folder

Until next post!

MG.-
Mariano Gomez, MVP
Maximum Global Business, LLC
http://www.maximumglobalbusiness.com/

6 comments:

Francisco G, Hillyer said...

I Just fixed that specific problem last week, there's a KB in the works for it!!!

Ladon said...

Anyone know if this can be accomplished server side or if this has to be applied to each client?

Anonymous said...

Hello Mariano,
I just ran an upgrade from GP10 SP5to GP2013 SP2 and this is causing me an issue.

The following error is generating, I went through these steps however it is not resolving the issue.

Any thoughts?

Thank you!
Kerri

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 OnlineServices.

Exception Details:
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Dynamics.GP.OnlineServices, Version=12.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.Dynamics.GP.OnlineServices, Version=12.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName)
at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
at System.Type.GetType(String typeName, Boolean throwOnError)
at Microsoft.Dexterity.Bridge.AddinManager.LoadAddinsFromConfig(String configPath, String sectionName)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


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

Mariano Gomez said...

Kerri,

In your case it sounds the assembly was not loaded to begin with during the install. Can you effectively verify the presence of the physical file, Microsoft.Dynamics.GP.OnlineServices in the installation directory where GP 2013 SP2 was installed? I don't usually address support issues on my blog so I invite you to post this at http://community.dynamics.com

MG.-

Layla said...

Hi Mariano,

I got the same problem as Kerri (see previous comment). I do see the Microsoft.Dynamics.GP.OnlineServices in my GP2013 installation folder but the Addins folder is empty. I tried searching for this topic in the http://community.dynamics.com site but found nothing cut this blog. Do you know what resolved Kerri's issue?

Mariano Gomez said...

Layla:

Try installing the GP2013 SP2 image. This issue was resolved with this service pack. With the RTM and SP1 of GP2013, assemblies needed to be installed in the root GP2013 folder as opposed to the addin folder. In addition, an entry needed to be placed in the Dynamics.exe.config file for these assemblies. This requirement is no longer the case with SP2.

MG.-