TargetInvocationException at resources.ApplyResources

  • Thread starter Thread starter Flieks
  • Start date Start date
F

Flieks

Guest
This happens at this line of code:

Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(frmEstimate))

....

resources.ApplyResources(Me.TreeViewSplitter, "TreeViewSplitter")


in an azure app service.

full exception:

System.Reflection.TargetInvocationException:
at System.RuntimeMethodHandle.SerializationInvoke (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
at System.Runtime.Serialization.ObjectManager.FixupSpecialObject (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
at System.Runtime.Serialization.ObjectManager.DoFixups (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
at System.Resources.ResourceReader.DeserializeObject (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
at System.Resources.ResourceReader.LoadObjectV2 (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
at System.Resources.ResourceReader.LoadObject (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
at System.Resources.ResourceReader+ResourceEnumerator.get_Entry (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
at System.Resources.ResourceReader+ResourceEnumerator.get_Current (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
at System.ComponentModel.ComponentResourceManager.FillResources (System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
at System.ComponentModel.ComponentResourceManager.FillResources (System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
at System.ComponentModel.ComponentResourceManager.ApplyResources (System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
at Quick_Devis.NET.frmEstimate.InitializeComponent (Quick Devis .NET, Version=1.0.0.2, Culture=neutral, PublicKeyToken=c29a711558815ce6Quick Devis .NET, Version=1.0.0.2, Culture=neutral, PublicKeyToken=c29a711558815ce6: C:\Users\gebruiker\Documents\projects\QDV TRUNK_2\Quick Devis .NET\frmEstimate.Designer.vbQuick Devis .NET, Version=1.0.0.2, Culture=neutral, PublicKeyToken=c29a711558815ce6: 560)
at Quick_Devis.NET.frmEstimate..ctor (Quick Devis .NET, Version=1.0.0.2, Culture=neutral, PublicKeyToken=c29a711558815ce6Quick Devis .NET, Version=1.0.0.2, Culture=neutral, PublicKeyToken=c29a711558815ce6: C:\Users\gebruiker\Documents\projects\QDV TRUNK_2\Quick Devis .NET\frmEstimate.vbQuick Devis .NET, Version=1.0.0.2, Culture=neutral, PublicKeyToken=c29a711558815ce6: 4513)
at Quick_Devis.NET.EstimateWithFrmFactory.GetEstimate (Quick Devis .NET, Version=1.0.0.2, Culture=neutral, PublicKeyToken=c29a711558815ce6Quick Devis .NET, Version=1.0.0.2, Culture=neutral, PublicKeyToken=c29a711558815ce6: C:\Users\gebruiker\Documents\projects\QDV TRUNK_2\Quick Devis .NET\EstimateWithFrmFactory.vbQuick Devis .NET, Version=1.0.0.2, Culture=neutral, PublicKeyToken=c29a711558815ce6: 60)
at QDVUserAPI.UserApiObjectFactory.GetEstimate (QDVUserAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c29a711558815ce6QDVUserAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c29a711558815ce6: C:\Users\gebruiker\Documents\projects\QDV TRUNK_2\QDV_Macros\QDV_Proxy\API\UserApiObjectFactory.vbQDVUserAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c29a711558815ce6: 162)
at WebAPI.WebAPI.OpenEstimate (WebAPI, Version=0.0.0.0, Culture=neutral, PublicKeyToken=nullWebAPI, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null: C:\Users\gebruiker\Documents\projects\QDV TRUNK_2\WebAPI\WebAPI.csWebAPI, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null: 540)
Inner exception System.InvalidOperationException handled at System.RuntimeMethodHandle.SerializationInvoke:
at System.Windows.Forms.ImageListStreamer..ctor (System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)


This site

Exception has been thrown by the target of an invocation. (mscorlib) - multidimensional project visual studio 2012

told me to ask it here ;)

Thanks

Continue reading...
 
Back
Top