Issue opening designer file

Posted by: kasun.vidyarathna on 22 March 2018, 11:45 pm EST

    • Post Options:
    • Link

    Posted 22 March 2018, 11:45 pm EST

    Hi,

    Relates to win-form edition - C1StudioInstaller20161.1.12

    We are having serious issues with component one at the moment as it doesn’t let us open the designer file for most of the win forms.

    It complain about completely unrelated file sitting in this project

    i.e “Value cannot be null. Parameter name: String” and points to a line number in a file which this form doesn’t even use.

    Can someone please let us know what can be do regarding this

    Thanks

  • Posted 25 March 2018, 3:49 pm EST

    Hello,

    Did you use this link for installing 2016 v1 version of the studio?

    http://cdn.componentone.com/files/studioinstaller/C1StudioInstaller20161.1.12.exe

    Generally this error is observed when there are incorrect references present in the project. We suggest you to try the following steps:

    1. Open the project in Visual Studio.
    2. Close all designer windows.
    3. Delete all the ComponentOne references from the solution explorer.
    4. Re-add the ComponentOne references.
    5. In the licenses.licx file, remove the version and PublicKeyToken part from the entries.

      For Example,
    C1.Win.C1Themes.C1ThemeController, C1.Win.C1Themes.4, Version=4.0.20181.296, Culture=neutral, PublicKeyToken=594a0605db191ac1
    

    should be writtten as:

    C1.Win.C1Themes.C1ThemeController, C1.Win.C1Themes.4
    
    
    1. Close the application and delete the BIN and OBJ folders from the application.
    2. Open the application, rebuild your solution and try opening the designer again.

    Also, you can try using the newer ComponentOne version from the below mentioned link:

    http://cdn.componentone.com/files/studioinstaller/C1StudioInstaller20173.1.9.exe

    Let us know if you still face any issues.

    Best Regards,

    Esha

  • Posted 25 March 2018, 7:46 pm EST

    Hi Esha,

    Thanks for the reply. We have followed all the steps (apart from installing the new version) but still no luck.

    Also, we get this attached error in one of the form which complains that

    “Only object of the type C1DockingTabPage can be added to the Controls collection of C1DockingTab.”

    But in in code few C1DockingTabPages are added to one of the C1DockingTab. This all works fine when you run the application, but gives the error when try to open the designer and cannot do any changes because of this.

    Please see attached snip from .designer file

    Thanks

  • Posted 25 March 2018, 11:42 pm EST - Updated 3 October 2022, 3:33 pm EST

  • Posted 26 March 2018, 5:56 pm EST

    Hello,

    “Value cannot be null. Parameter name: String”

    It seems that a string is being parsed somewhere, but it does not have a value at a particular point.

    However, we would request you to try updating your sample using the C1ProjectUpdater utility. For your information, it can be used from the below mentioned link:

    https://www.grapecity.com/en/blogs/c1projectupdater-utility/

    Also, it is present under “GrapeCity License Manager” option in the Tools menu of Visual Studio.

    “Only object of the type C1DockingTabPage can be added to the Controls collection of C1DockingTab.”

    This error is observed when you are trying to add controls while C1DockingTab is selected. As the error says, you can only add C1DockingTabPage type objects to a C1DockingTab. Ensure that you are not doing so by code while upgrading the sample. Also, ensure that you are not trying to drag and drop a control on a C1DockingTab at any point.

    If you still face the issue, kindly share a stripped down sample replicating the errors so that we can assist you further, at the earliest. If you still face the issue, kindly share a stripped down sample replicating the errors. Also, please share your system environment details. This will help us assist you further, at the earliest.

    Best Regards,

    Esha

  • Posted 6 November 2019, 8:15 pm EST

    Hi,

    May I know the solution for this error “Only object of the type C1DockingTabPage can be added to the Controls collection of C1DockingTab.”?

    I’m not able to open the Form in designer mode. In form 1 C1DockingTab and 3 C1DockingTabPage controls available. All the 3 C1DockingTabPage added to C1DockingTab in design time.

    As mentioned “This error is observed when you are trying to add controls while C1DockingTab is selected.” how to unselect during design time.

  • Posted 6 November 2019, 9:24 pm EST

    Hi,

    Can you please confirm whether design item error occurs immediately after opening Form in design view or after dropping a control from Toolbox onto the Form?

    In the former case, the error is observed when a control other than C1DockingTabPage is added at runtime (which is probably not true in your case). Do you observe any error when executing the application?

    In the latter case, just make sure that you are not dropping a non-C1DockingTabPage control on C1DockingTab.

    If you still observe this issue, I would request you to attach a small sample which shows this behavior so we can further investigate it.

    Thanks,

    Jitender

  • Posted 6 November 2019, 10:42 pm EST

    The form was designed long back, now I want to add a new control. So I’m trying to open, but getting the error when I open immediately after opening form in design view.

    I’m not getting any error during run time. Also, no controls added to C1DockingTab during run time.

    As mentioned earlier, only 3 C1DockingTabPages added to C1DockingTab in design time.

    below is code snippet

    private C1.Win.C1Command.C1DockingTab tabCollection;

    private C1.Win.C1Command.C1DockingTabPage tabOverview;

    private C1.Win.C1Command.C1DockingTabPage tabDocuments;

    private C1.Win.C1Command.C1DockingTabPage tabActivityAll;


    this.tabCollection = new C1.Win.C1Command.C1DockingTab();

    this.tabOverview = new C1.Win.C1Command.C1DockingTabPage();

    this.tabDocuments = new C1.Win.C1Command.C1DockingTabPage();

    this.tabActivityAll = new C1.Win.C1Command.C1DockingTabPage();


    this.tabCollection.Controls.Add(this.tabOverview);

    this.tabCollection.Controls.Add(this.tabDocuments);

    this.tabCollection.Controls.Add(this.tabActivityAll);

  • Posted 6 November 2019, 10:47 pm EST

    Can you please post the stack trace so we can see where the issue might be?

  • Posted 6 November 2019, 11:07 pm EST

    I’m getting this issue while opening designer form.

  • Posted 6 November 2019, 11:10 pm EST

    Please post a screenshot of the error.

  • Posted 6 November 2019, 11:15 pm EST - Updated 3 October 2022, 3:34 pm EST

  • Posted 7 November 2019, 3:58 pm EST - Updated 3 October 2022, 3:34 pm EST

    Hi,

    It’s difficult to tell anything from this error alone.

    Do you get a page like this [https://docs.microsoft.com/en-us/dotnet/framework/winforms/controls/design-time-errors-in-the-windows-forms-designer] on the Form?

    If not, then please follow these steps:

    1. In Visual Studio, open the project where this issue occurs.

    2. Open another instance of Visual Studio (this would be used as the debugger).

    3. In the debugger VB, go to “Debug > Attach to Process”.

    4. In the “Attach to Process” window, select the “devenv.exe” process which corresponds to the VS instance in step-1. Click on “Attach” button. [See attached screenshot for reference].

    5. Open VS instance from step-1, and open the Form designer.

    The debugger VS instance should stop at the error where you should be able to see the stacktrace.

    If this does not help, then we request to create a small sample where we can further investigate it.

    Thanks,

    Jitender

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels