Sharpdevelop IDE 4.4无法加载表单设计器

时间:2015-02-19 04:21:57

标签: c# winforms sharpdevelop

我正在开发一个WinForms应用程序,我的表单设计师之一没有加载并收到以下错误。

  

无法加载设计器。检查源代码是否存在语法错误,并检查是否所有引用都可用。

ICSharpCode.FormsDesigner.FormsDesignerLoadException: System.ArgumentNullException: Value cannot be null.
Parameter name: value
   at System.Collections.CollectionBase.OnValidate(Object value)
   at System.Collections.CollectionBase.System.Collections.IList.Add(Object value)
   at System.CodeDom.CodeExpressionCollection.AddRange(CodeExpression[] value)
   at System.CodeDom.CodeObjectCreateExpression..ctor(CodeTypeReference createType, CodeExpression[] parameters)
   at ICSharpCode.NRefactory.Visitors.CodeDomVisitor.AddEventHandler(Expression eventExpr, Expression handler, Object data)
   at ICSharpCode.NRefactory.Visitors.CodeDomVisitor.VisitAssignmentExpression(AssignmentExpression assignmentExpression, Object data)
   at ICSharpCode.NRefactory.Ast.AssignmentExpression.AcceptVisitor(IAstVisitor visitor, Object data)
   at ICSharpCode.NRefactory.Visitors.CodeDomVisitor.VisitExpressionStatement(ExpressionStatement expressionStatement, Object data)
   at ICSharpCode.NRefactory.Ast.ExpressionStatement.AcceptVisitor(IAstVisitor visitor, Object data)
   at ICSharpCode.NRefactory.Ast.AbstractNode.AcceptChildren(IAstVisitor visitor, Object data)
   at ICSharpCode.NRefactory.Visitors.CodeDomVisitor.VisitMethodDeclaration(MethodDeclaration methodDeclaration, Object data)
   at ICSharpCode.NRefactory.Ast.MethodDeclaration.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)


   at ICSharpCode.FormsDesigner.FormsDesignerViewContent.LoadDesigner()
   at ICSharpCode.FormsDesigner.FormsDesignerViewContent.LoadAndDisplayDesigner()
   at ICSharpCode.FormsDesigner.FormsDesignerViewContent.LoadInternal(OpenedFile file, Stream stream)
   at ICSharpCode.SharpDevelop.Gui.AbstractViewContentHandlingLoadErrors.Load(OpenedFile file, Stream stream)

0 个答案:

没有答案