fbpx
Welcome, Guest
Username: Password: Remember me
Welcome to the XSharp forum!

Tell us and our members who you are, what you like and why you became a member of this site.
We welcome all new members and hope to see you around a lot!
  • Page:
  • 1

TOPIC:

Re: VS 2019 X# form design error when select Windows Forms Application Template 11 Jun 2021 10:45 #18784

  • gbuebook
  • gbuebook's Avatar
  • Topic Author


  • Posts: 7
  • Dear X# Developer,

    Is there any fixes for following Error when selecting 'Visual Studio 2019' <Windows Forms Application X#> template:

    Form Designer Error:
    Instances of this error (1)

    1. Hide Call Stack

    at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.EnsureDocument(IDesignerSerializationManager manager)
    at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
    at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
    --- End of stack trace from previous location where exception was thrown ---
    at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
    at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)

    Thank You
    Regards
    David

    Please Log in or Create an account to join the conversation.

    Re: VS 2019 X# form design error when select Windows Forms Application Template 11 Jun 2021 10:52 #18785

    • robert
    • robert's Avatar


  • Posts: 2222
  • David,

    Which version of Visual Studio ?
    Which version of X#
    Do you have the Xamarin integration enabled inside Visual Studio ?

    Robert
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    Re: VS 2019 X# form design error when select Windows Forms Application Template 11 Jun 2021 11:06 #18786

    • gbuebook
    • gbuebook's Avatar
    • Topic Author


  • Posts: 7
  • Dear Robert,

    Thank you for your quick reply,

    Microsoft Visual Studio Community 2019 - Version 16.10.1
    XSharp BV - 2.8.1.12

    Regards
    David

    Please Log in or Create an account to join the conversation.

    Re: VS 2019 X# form design error when select Windows Forms Application Template 11 Jun 2021 11:15 #18787

    • robert
    • robert's Avatar


  • Posts: 2222
  • David,
    You did not answer my question about Xamarin integration, but the picture shows that you have indeed Xamarin installed.
    I am not sure if you are really using this, but there is a conflict between our VS integration and Xamarin. Xamarin uses an older version of the Mono.Cecil DLL that is not compatible with the DLL that the X# VS integration depends on.

    If you can disable or uninstall the Xamarin extensions inside VS then the Windows Forms editor inside X# projects should work.
    We have fixed this in the subscribers build that was released earlier this week.
    I don't know yet when the next public release will become available.

    Robert
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    Re: VS 2019 X# form design error when select Windows Forms Application Template 11 Jun 2021 11:31 #18788

    • gbuebook
    • gbuebook's Avatar
    • Topic Author


  • Posts: 7
  • Dear Robert,

    I do remove Xamarin and new error appear when I Drag the form design as shown in picture.


    regards
    David

    Please Log in or Create an account to join the conversation.

    Re: VS 2019 X# form design error when select Windows Forms Application Template 11 Jun 2021 12:03 #18789

    • robert
    • robert's Avatar


  • Posts: 2222
  • David,
    I am not sure what you mean with "I Drag the form design as shown in picture."

    Robert
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    Re: VS 2019 X# form design error when select Windows Forms Application Template 11 Jun 2021 12:17 #18790

    • gbuebook
    • gbuebook's Avatar
    • Topic Author


  • Posts: 7
  • Robert
    Enlarging the form the error appear immediately as shown on picture.

    David

    Please Log in or Create an account to join the conversation.

    Re: VS 2019 X# form design error when select Windows Forms Application Template 11 Jun 2021 12:54 #18791

    • robert
    • robert's Avatar


  • Posts: 2222
  • David,
    When you drag the border to the right then the Windows Forms editor will save the code to the .Designer file and will also create the Form1.resx file.
    The message seems to indicate that the file name for the Form1.resx file is not correct.
    What is the folder name in which your solution / project is located ?

    Robert
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    Re: VS 2019 X# form design error when select Windows Forms Application Template 11 Jun 2021 14:34 #18792

    • gbuebook
    • gbuebook's Avatar
    • Topic Author


  • Posts: 7
  • Robert,

    All the folders and files look OK on attached picture

    David

    Please Log in or Create an account to join the conversation.

    Re: VS 2019 X# form design error when select Windows Forms Application Template 11 Jun 2021 14:44 #18794

    • robert
    • robert's Avatar


  • Posts: 2222
  • David,
    I am sorry but I cannot read the explorer pictures: too small.
    But from what I can see there is a # character in the path. Is that correct ?
    I suspect that this character is the cause of the problem:
    we are using some validation code (that originally came from Microsoft) that marks the following characters as invalid for path and file names:
    ([\\/:*?\"<>|#%])

    Apparently the # character should not be in that list...

    Robert
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    Re: VS 2019 X# form design error when select Windows Forms Application Template 11 Jun 2021 15:11 #18795

    • gbuebook
    • gbuebook's Avatar
    • Topic Author


  • Posts: 7
  • Robert

    Yes you are right the working directory do have < C# > E:\C#\cproj1\WindowsFormsApplication2\WindowsFormsApplication2

    Let me try without # char directory, will update you

    David
    Attachments:

    Please Log in or Create an account to join the conversation.

    Re: VS 2019 X# form design error when select Windows Forms Application Template 11 Jun 2021 15:17 #18796

    • gbuebook
    • gbuebook's Avatar
    • Topic Author


  • Posts: 7
  • Robert

    Thank You very much, never expect that and you have fixed my problem and I can start my development.

    David

    Please Log in or Create an account to join the conversation.

    Re: VS 2019 X# form design error when select Windows Forms Application Template 11 Jun 2021 15:21 #18797

    • robert
    • robert's Avatar


  • Posts: 2222
  • David,

    Thanks for the confirmation.
    I will change the code to allow the # sign so you can rename your folder to X# in the future.

    Robert
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    • Page:
    • 1