Skip to content

Infragistics Community Forum / Desktop / Ultimate UI for Windows Forms / WinForm crashes Visual Studio in Design Time

WinForm crashes Visual Studio in Design Time

New Discussion
Mike Fleisch
Mike Fleisch asked on Dec 5, 2022 4:09 PM

Hi,

i have a very big form with a lot of Infragistics-Tools, changed it several times, all worked very good … but since today i am not able to open the form in design time – visual studio needs some time to open and after displaying the form with no response visual studio crashes und restarts.

In the windows logfile i found the following errormessge:

Anwendung: devenv.exe
Frameworkversion: v4.0.30319
Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet.
Ausnahmeinformationen: System.ArgumentNullException
bei Infragistics.Win.UIAutomation.Stubs.EditorControlUIAProviderStub..ctor(Infragistics.Win.UltraControlBase, Infragistics.Win.EmbeddableEditorBase, Infragistics.Win.EmbeddableEditorOwnerBase)
bei Infragistics.Win.UltraWinEditors.UltraToggleEditorBase.CreateUIAutomationProvider(System.Object)
bei Infragistics.Win.UltraControlBase.get_UIAutomationProvider()
bei Infragistics.Win.UIAutomation.UiaProviderControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)

Anything happens in the ctor of EditorControlUIAProviderStub => ArgumentNullException

I have tried almost everything:

  • Copy design-code to a new form
  • Creating a new solution with one form an this designcode
  • restored 1 year old code with a older version of this form => same error
  • Reinstal Visual Studio
  • upgrade Visual Studio von 2019 to 2022
  • Reinstall Infragistics Tools 2020.2

always the same problem, Visual Studio crashes

I am running out of ideas und would realy appreciate any help.
THANKS,
Mike

 

Attachments:
Sign In to post a reply

Replies

  • 0
    Mike Fleisch
    Mike Fleisch answered on Dec 1, 2022 12:33 AM

    by the way – in run time it works fine!

  • 0
    Mike Fleisch
    Mike Fleisch answered on Dec 1, 2022 12:53 AM

    In the ZIP-File of the first post you got the following file:frm_Artikel.vbfrm_Artikel.Designer.vb

    maybe you need this file too: frm_Artikel.resx

     

    • 0
      Andrew Goldenbaum
      Andrew Goldenbaum answered on Dec 1, 2022 4:23 PM

      Hello Michael,

      I have included the sample Form and its designer into a new Windows Forms application on my end, and in doing so, I am able to load the designer without Visual Studio crashing with the error you are reporting. As proof, I am attaching a screenshot of what I see after including it on my end.

      Since I am unable to reproduce the behavior, I have a few questions about your environment in this case. Can you please provide information on the following?

      1. What is the specific version of Infragistics for Windows Forms 2020.2 that you are testing against? My tests were made against the latest service release in 20.2.20202.82. I also tested against the latest version of 22.2 and was not able to reproduce any error there.

      2. What operating system is your machine running?

      3. What version of the .NET Framework are you targeting? Judging by the error message, it looks like it’s probably 4.0, but I’m not certain on this.

      Please let me know if you have any other questions or concerns on this matter.

      • 0
        Mike Fleisch
        Mike Fleisch answered on Dec 5, 2022 3:39 PM

        Hello Andrew,

        thanks for your investigation.

        I tried it at an other PC, and yes, this was working!

        Back at my machine i cleaned up everything, even temp-files, etc.

        Nothing changed, still crashing.

        After this i tried to start the visual studio in admin-mode – AND IT WORKED!

        I don't know why, but this is the solution i need to go on – starting Visual Studio in Admin-Mode…

        Thx again, stay save and have a nice time.

        Greets from Austria,

          Mike

      • 0
        Andrew Goldenbaum
        Andrew Goldenbaum answered on Dec 5, 2022 4:09 PM

        Hello Mike,

        Thank you for your update on this matter. I am glad you were able to resolve this issue by running Visual Studio in admin-mode.

        As an aside to this, I personally have Visual Studio 2022 set to always open in admin mode, but as a test, I tried opening a solution with your Form in normal mode, but strangely still did not reproduce the issue.

        Please let me know if you have any other questions or concerns on this matter.

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Mike Fleisch
Favorites
0
Replies
5
Created On
Dec 05, 2022
Last Post
3 years, 2 months ago

Suggested Discussions

Created by

Created on

Dec 5, 2022 4:09 PM

Last activity on

Feb 25, 2026 10:15 AM