I'm in the habit of documenting every error that I get in Dynamics GP development. The aim is that then next time that the next time that I come across it, I'll have the answer. So, here's today's fun:
While deploying a Dynamics GP addin that had Menus for VSTools as a component, I got the error below
The type initializer for 'Microsoft.Dexterity.Applications.root' threw an exception.
Inner Exception:
Specified argument was out of the range of valid values.
Parameter name: productId
GetType: System.ArgumentOutOfRangeException
Source: Microsoft.Dexterity.Bridge
StackTrace: at Microsoft.Dexterity.Bridge.DictionaryRoot.InitCookie()
at Microsoft.Dexterity.Bridge.DictionaryRoot.Init(String path, Int32 productId, Boolean isFormsDictionary, Boolean openForCodeGeneration)
at Microsoft.Dexterity.Bridge.DictionaryRoot..ctor(Int32 productId, Boolean isFormsDictionary)
at Microsoft.Dexterity.Applications.root..cctor()
TargetSite: Void InitCookie()