When we have both build 6.4 (frw 3.5 and frw 4.0) installed on same machine (windows 7), we have this error. We need to uninstall build 6.4 frw 3.5 to get rid of the error. I thought it was possible to installed two builds if they were on distinct framework but it seems it's not possible. It look like the problem is in the GAC with the Gizmox Common DLL. I have yellow highlighted a fragment of the error below.
System.TypeInitializationException occurred
Message=The type initializer for 'Gizmox.WebGUI.Common.Resources.ResourceHandle' threw an exception.
Source=mscorlib
TypeName=Gizmox.WebGUI.Common.Resources.ResourceHandle
StackTrace:
at System.Runtime.Serialization.FormatterServices.nativeGetUninitializedObject(RuntimeType type)
at System.Runtime.Serialization.FormatterServices.GetUninitializedObject(Type type)
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ParseObject(ParseRecord pr)
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Parse(ParseRecord pr)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped record)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryHeaderEnum binaryHeaderEnum)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Resources.ResourceReader.DeserializeObject(Int32 typeIndex)
at System.Resources.ResourceReader._LoadObjectV2(Int32 pos, ResourceTypeCode& typeCode)
at System.Resources.ResourceReader.LoadObjectV2(Int32 pos, ResourceTypeCode& typeCode)
at System.Resources.ResourceReader.LoadObject(Int32 pos)
at System.Resources.ResourceReader.ResourceEnumerator.get_Entry()
at System.Resources.ResourceReader.ResourceEnumerator.get_Current()
at System.ComponentModel.ComponentResourceManager.FillResources(CultureInfo culture, ResourceSet& resourceSet)
at System.ComponentModel.ComponentResourceManager.FillResources(CultureInfo culture, ResourceSet& resourceSet)
at System.ComponentModel.ComponentResourceManager.ApplyResources(Object value, String objectName, CultureInfo culture)
at System.ComponentModel.ComponentResourceManager.ApplyResources(Object value, String objectName)
at UData.Web.Collect.SolGenericControlBase.InitializeComponent() in D:\Projets\UDATA\Projects\V8.0.0 - DEV\WEB\UData\Collect\ucHosted\SolGenericControlBase.Designer.vb:line 89
at UData.Web.Collect.SolGenericControlBase..ctor(Inspection file) in D:\Projets\UDATA\Projects\V8.0.0 - DEV\WEB\UData\Collect\ucHosted\SolGenericControlBase.vb:line 83
InnerException: System.InvalidCastException
Message=[A]Gizmox.WebGUI.Common.Configuration.Config cannot be cast to [B]Gizmox.WebGUI.Common.Configuration.Config. Type A originates from 'Gizmox.WebGUI.Common, Version=4.0.5701.0, Culture=neutral, PublicKeyToken=263fa4ef694acff6' in the context 'Default' at location 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Gizmox.WebGUI.Common\v4.0_4.0.5701.0__263fa4ef694acff6\Gizmox.WebGUI.Common.dll'. Type B originates from 'Gizmox.WebGUI.Common, Version=3.0.5701.0, Culture=neutral, PublicKeyToken=263fa4ef694acff6' in the context 'Default' at location 'C:\Windows\assembly\GAC_MSIL\Gizmox.WebGUI.Common\3.0.5701.0__263fa4ef694acff6\Gizmox.WebGUI.Common.dll'.
Source=Gizmox.WebGUI.Common
StackTrace:
at Gizmox.WebGUI.Common.Configuration.Config.GetInstance()
at Gizmox.WebGUI.Common.Resources.ResourceHandle..cctor()
InnerException: