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.exeFrameworkversion: v4.0.30319Beschreibung: 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:
always the same problem, Visual Studio crashes
I am running out of ideas und would realy appreciate any help.THANKS,Mike
frm_Artikel.zip
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.
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
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.
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
frm_Artikel_resx.rar
by the way - in run time it works fine!