none
TargetInvocationException at resources.ApplyResources RRS feed

  • Question

  • 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

    https://social.msdn.microsoft.com/Forums/en-US/0e311758-5eee-4132-9f12-6ae7de321cc2/exception-has-been-thrown-by-the-target-of-an-invocation-mscorlib-multidimensional-project?forum=sqldatamining

    told me to ask it here ;)

    Thanks



    Thursday, March 7, 2019 8:21 PM

All replies

  • Hi Flieks,

    Welcome to the MSDN forum.

    According to your code, it seems about the VB development and our forum is to discuss the VS IDE, I will help you move this thread to the appropriate forum for better support, thank you for your understanding.

    Best regards,

    Sara


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Friday, March 8, 2019 6:27 AM
  • Hi,

    see the following link,I hope it can help you.

    https://social.msdn.microsoft.com/Forums/en-US/24775679-46cc-4ae5-ad60-9f6c1af8c865/applyresources-exception-quotexception-thrown?forum=winforms

    Best Regards,

    Alex


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, March 8, 2019 7:39 AM