Forum  Commercial Foru...  Commercial Foru...  6.4 Frw 3.5 and 6.4 Frw 4.0 on same machine
Previous Previous
 
Next Next
New Post 1/5/2012 9:37 AM
  dubem1
1077 posts
1st Level Poster




6.4 Frw 3.5 and 6.4 Frw 4.0 on same machine 
Modified By dubem1  on 1/6/2012 11:10:23 AM)

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:

 

 
New Post 1/5/2012 10:09 AM
  palli
14323 posts
1st Level Poster




Re: 6.4 Frw 3.5 and 6.4 Frw 4.0 on same machine 

Hi Martin,

As far as I best know, this should indeed be possible.

Can you shed a little more light on the subject, like:

  1. I understand from your description that you get the error from a VS2010 application ?
  2. Do you get the same problem if you create a new Visual WebGui VS2010 application ?
  3. If not, tor this particular application project, did you upgrade it from VS2008 to VS2010 ?
  4. Are you using with or without sources installations of Visual WebGui ?
  5. What is the exact version of each installed framework ?

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 1/6/2012 7:04 AM
  dubem1
1077 posts
1st Level Poster




Re: 6.4 Frw 3.5 and 6.4 Frw 4.0 on same machine 
Modified By dubem1  on 1/6/2012 11:10:16 AM)

1 . yes

2 . can't tell, we now have uninstalled the build 6.4 frk 3.5

3 . yes, the project was upgraded from VS2008 to VS2010

4 . Without sources

5. Frk 35 : Build 6.4C QA2   Frk 4.0 Build 6.4C

I don't need more support since there is a workaround, but I beleive you must know this happens.

Martin

 
New Post 1/6/2012 10:56 AM
  palli
14323 posts
1st Level Poster




Re: 6.4 Frw 3.5 and 6.4 Frw 4.0 on same machine 

Hi Martin,

Thanks for the information.

As you upgraded your project from Vs2008 og VS2010, I assume you let Visual Studio 2010 do it's autoconversion for you, right ?

In any case, I would first suspect that the conversion has some VS2008 leftovers that needs to be fixed, something thay may even give you problems in the future. If you would be willing to email the Project file (*.vbproj or *.csproj) as well as web.config, I'll look them through and see if I spot something.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  Commercial Foru...  Commercial Foru...  6.4 Frw 3.5 and 6.4 Frw 4.0 on same machine
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS