Skip to content

Infragistics Community Forum / Desktop / Ultimate UI for Windows Forms / Issues with designer in Visual Studio 2019 and .NET 5

Issues with designer in Visual Studio 2019 and .NET 5

New Discussion
Geoff Hopkins
Geoff Hopkins asked on Aug 19, 2021 11:28 PM

Hi there

I am having issues viewing my controls in the VIsual Studio 2019 16.10.4 where I am compiling against Infragistcs 2021.1 v 21.1.32-ci

This is in a C# WinForms app targeted at net5.0-windows

Basically none of my controls will display in the designer without errors.

The controls all compile fine and are all usable at runtime, the issue occurs only in the control designer and for even the most basic of controls i.e. a panel that inherits from the UltraPanel and does nothing else

The errors are always the same across all controls.

I have attached the control and a screenshot of the error.

Any ideas would be greatly appreciated.

Regards

Geoff

Sign In to post a reply

Replies

  • 0
    Geoff Hopkins
    Geoff Hopkins answered on Aug 6, 2021 6:18 AM

    Hi again

    It looks to me like there is an issue with Visual Inheritence in .NET 5 that is NOT there for .NET Framework 4.6.2 when using Infragistcs 2021.1 v 21.1.32-ci

    Any control that derives from Infragistics seems to have an issue in .NET 5 whilst there is no issue with .NET 4.6.2

    In the attached sample you can see that RamesysPanel has the errors when loading in design view of VS 2019 v16.10.4

    where as the UserControl1 control which derives from UserControl has no such issue.

    Thanks

    Geoff

    WinFormsApp1.zip

    • 0
      Geoff Hopkins
      Geoff Hopkins answered on Aug 9, 2021 2:00 AM

      Hi there

      Has anybody had a chance to look at this?

      Regards

      Geoff

      • 0
        N. Ishibashi
        N. Ishibashi answered on Aug 10, 2021 6:04 AM

        Hello,

        Thank you for posting an inquiry to our forum.
        We are looking into your inquiry. As it take some more time until we can give you a reply, could you wait for a while?

      • 0
        Geoff Hopkins
        Geoff Hopkins answered on Aug 10, 2021 6:09 AM

        Hi Noriko

        Yeah sure, please keep me updated on your findings.

        Thanks in advance

        Geoff

    • 0
      Mihoko Kamiishi
      Mihoko Kamiishi answered on Aug 13, 2021 5:48 AM

      Hello Geoff,

      I have updated your sample to reference the official release version 21.1.24 instead of 21.1.32-ci.

      Can you please test to see if this works in your environment?

      Please note that there are still some issues we are currently working on to support Visual Studio version 16.10.

      WinForms on Visual Studio 16.10
      https://www.infragistics.com/community/forums/f/ultimate-ui-for-windows-forms/123150/winforms-on-visual-studio-16-10

      WinFormsApp1_5F00_mod.zip

      • 0
        Geoff Hopkins
        Geoff Hopkins answered on Aug 16, 2021 3:05 AM

        Hi there

        Thanks for the reply

        I am a bit confused here, I was under the impression that in order to use 2021.1 against Visual Studio 2019 16.10 or later that I needed to use 21.1.32-ci but you are saying here I should try against 21.1.24.

        I have NO option to downgrade my Visual Studio 2019 to 16.9.x so can you please tell me which version of 2021.1 I should be using against Visual Studio 2019 16.10 or later?

        Thanks

        Geoff

      • 0
        Geoff Hopkins
        Geoff Hopkins answered on Aug 16, 2021 4:00 AM

        Hi again

        I tried your sample solution against Visual Studio 2019 Community Edition v16.9.2 and got the attached error when opening the RamesysPanel control in design view.

        Again please see my comments above about the confusion around Visual Studio and Infragistics versions

        Regards

        Geoff

      • 0
        Mihoko Kamiishi
        Mihoko Kamiishi answered on Aug 16, 2021 11:48 AM

        Hello Geoff,

        The supported version for Visual Studio 2019 is 16.9.4 or later as noted in the document below.

        What’s New in 2021 Volume 1
        .NET Core Designer Support
        https://www.infragistics.com/help/winforms/whats-new-in-2021-volume-1

        I haven't been able to reproduce the error you described. Can you please provide the exact steps to reproduce the error you are seeing with Visual Studio 2019 16.10.4?

      • 0
        Geoff Hopkins
        Geoff Hopkins answered on Aug 16, 2021 11:19 PM

        Hi Mihoko

        Using the attached sample

        1/ Open the solution in Visual Studio 2019 v 16.10.4

        2/ Compile the application in Debug build

        3/ Right click on the RamesysPanel control and choose "View Designer" from the context menu. This control inherits from Infragistics.Win.Misc.UltraPanel

        4/ You will get the error when attempting to view the RamesysPanel control in the designer window, I have added a screenshot of the error to the zip file I have attached.

        5/ Right click on the UserControl1 control and choose "View Designer" from the context menu. You will NOT get the error with this control. This control inherits from System.Windows.Forms.UserControl

        Regards

        Geoff

        InfragisticsError.zip

      • 0
        Mihoko Kamiishi
        Mihoko Kamiishi answered on Aug 17, 2021 8:00 AM

        Hello Geoff,

        I was able to reproduce the issue you are experiencing. I have asked our engineering staff to examine this further. To ensure that it will receive attention, I have logged this behavior in our internal tracking system with a Development ID of 273233. The next step will be for a developer to review my investigation and confirm my findings or to offer a fix, or other resolution.

        In response to this issue being logged, I have opened a new private support case for you that I will be linking to this issue so you can be notified when a fix or other resolution becomes available. This private case has an ID of CAS-213625-T7R6Z9 and you can access it here: http://www.infragistics.com/…/support-activity

        Please let me know if you need more information.

      • 0
        Geoff Hopkins
        Geoff Hopkins answered on Aug 17, 2021 9:13 PM

        Hi Mihoko

        Great, thanks for that, please keep me informed.

        Regards

        Geoff

      • 0
        Mike Saltzman
        Mike Saltzman answered on Aug 18, 2021 2:18 PM

        Hi Geoff, 

        So I have good news and bad news. 
        I tried this out with v 21.1.32-ci and I am seeing the same exception you are getting: the NullReferenceException.
        Then I tried this same thing with our latest internal build and I do not get that exception any more. So it looks like this will be fixed in the next service release. 
        That's the good news. 

        The bad news is that it looks like Visual Studio doesn't show a designer for Control-derived classes in Net Core. In DotNet Framework, they do. But in Net Core, they only show a designer surface for classes that derive from Form or UserControl. You can see this by creating a class that derives from Control. When I do this, I get an error message that there are no classes to be designed. 

      • 0
        Geoff Hopkins
        Geoff Hopkins answered on Aug 19, 2021 11:28 PM

        Hi Mike

        Thanks for the reply.

        Yeah that is exactly the conclusion I came to myself thru trial and error.

        Interestingly the CustomControl that is available from the Visual Studio "Add New Item" templates derives also from Control and gets a designer error straight out of the box!

        I raised this on both Github and Visual Studio Developer Community and both say it is a known issue that is being investigated.

        Thanks again

        Geoff

      • 0
        Mike Saltzman
        Mike Saltzman answered on Aug 17, 2021 12:43 PM

        I'm confused. 
        Neither UltraPanel, nor the UserControl, nor the derived UltraPanel control have an option for "View Designer" on the context menu. 
        I tried the "About" and "Custom Property Page" options, which are the only ones specific to UltraPanel that we provide and they are both working fine for me, at least with our latest internal build. 

        Am I missing something? 

        EDIT: 
        Just to be extra thorough here, I tried it again with v21.1.32-ci and I still do not see a "View Designer" option on the context menu. 

      • 0
        Mike Saltzman
        Mike Saltzman answered on Aug 17, 2021 1:58 PM

        Okay.. ignore the comments above. I finally realized that you are not right-clicking on the control on the form, but rather on the File in the Solution Explorer.

        I tried this out with the latest ci build (32-ci) that you are using and I can reproduce the issue.

        But when I try this with the latest internal version of the controls, I do not get the Exception. So it looks like this will be fixed in the next ci build or service release. 

        However, even once that NullReferenceException is fixed, you still can't design the control, because Visual Studio gives me a different exception: 

        "The designer could not be shown for this file because none of the classes within it can be designed."

        But it looks like this is an issue with Visual Studio and not our controls, because I can reproduce the same issue with a control that is derived from Control, instead of UltraPanel. So there's nothing we can do about that.

        So it appears that the VS Designer will only allow you to design certain classes like UserControl or Form and not classes that are derived from Control or other base classes like they do in DotNet Framework applications. 

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Geoff Hopkins
Favorites
0
Replies
15
Created On
Aug 19, 2021
Last Post
5 years ago

Suggested Discussions

Tags

No tags

Created by

Created on

Aug 19, 2021 11:28 PM

Last activity on

Feb 18, 2026 12:58 PM