SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Error loading designer:

Last post 04-26-2007 8:45 PM by npaulin. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 04-20-2007 10:45 PM

    Error loading designer:

    I have another one of those code designer errors.  This project was imported from VS 2003 .NET; however, no code was ever added to

    InitializeComponent subroutine as I saw that was the problem in another post.  When using the design tab I get these errors:

     Error loading designer:

    System.InvalidOperationException: empty type
       at ICSharpCode.NRefactory.Visitors.CodeDomVisitor.ConvType(TypeReference type)
       at ICSharpCode.NRefactory.Visitors.CodeDomVisitor.VisitArrayCreateExpression(ArrayCreateExpression arrayCreateExpression, Object data)
       at ICSharpCode.NRefactory.Ast.ArrayCreateExpression.AcceptVisitor(IAstVisitor visitor, Object data)
       at ICSharpCode.NRefactory.Visitors.CodeDomVisitor.VisitFieldDeclaration(FieldDeclaration fieldDeclaration, Object data)
       at ICSharpCode.NRefactory.Ast.FieldDeclaration.AcceptVisitor(IAstVisitor visitor, Object data)
       at ICSharpCode.NRefactory.Ast.AbstractNode.AcceptChildren(IAstVisitor visitor, Object data)
       at ICSharpCode.NRefactory.Visitors.CodeDomVisitor.VisitTypeDeclaration(TypeDeclaration typeDeclaration, Object data)
       at ICSharpCode.NRefactory.Ast.TypeDeclaration.AcceptVisitor(IAstVisitor visitor, Object data)
       at ICSharpCode.NRefactory.Ast.AbstractNode.AcceptChildren(IAstVisitor visitor, Object data)
       at ICSharpCode.NRefactory.Visitors.CodeDomVisitor.VisitNamespaceDeclaration(NamespaceDeclaration namespaceDeclaration, Object data)
       at ICSharpCode.NRefactory.Ast.NamespaceDeclaration.AcceptVisitor(IAstVisitor visitor, Object data)
       at ICSharpCode.NRefactory.Ast.AbstractNode.AcceptChildren(IAstVisitor visitor, Object data)
       at ICSharpCode.NRefactory.Visitors.CodeDomVisitor.VisitCompilationUnit(CompilationUnit compilationUnit, Object data)
       at ICSharpCode.FormsDesigner.NRefactoryDesignerLoader.Parse()
       at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.EnsureDocument(IDesignerSerializationManager manager)
       at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
       at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host)

    I don't have any problems compiling the code and running the program.  The only problem is pulling up the graphical designer.

     Please advise,

  • 04-21-2007 9:39 AM In reply to

    Re: Error loading designer:

    Hello,

    I haven't any help what error you really get. In some situations VS can give you more information than #D: If you switch to the designer, VS tells you the line number where the error occurs.

    If I have no idea, I use VS C# Express instead of #D and try; sometimes I get the advise. Juergen 

    Software fuer Verlage (Publishers)
    #D + NET 2.0 + Firebird 2.0
    (formerly Delphi 5 + 2005 Pro)
  • 04-23-2007 1:06 PM In reply to

    Re: Error loading designer:

    I only have VS 2003, so that really isn't an option for me since the files were converted to a VS 2005 format.  Also, the files worked fine in VS 2003 because I was able to design them there.  I guess if it comes down to it, I could always redo the program and just import all of the modules and classes.
  • 04-26-2007 8:45 PM In reply to

    Re: Error loading designer:

    The error was coming from my global variables that I put in my main form.  By placing them in a module, the error disappeared; however, I was unable to determine which variable was causing the problem.  Consider this problem solved for me.  Thank you for your help.
Page 1 of 1 (4 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.