Winforms 在visual studio 2005中打开表单时出错

Winforms 在visual studio 2005中打开表单时出错,winforms,visual-studio-2005,Winforms,Visual Studio 2005,我在VisualStudio工作台上打开一个表单时,感到非常兴奋 它不总是,但有时它打开没有任何问题 有人能解决这个问题吗 该路径不是合法形式。 隐藏 at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck) at System.IO.Path.NormalizePath(String path, Boolean fullCheck) at System.IO.Path.GetFullPathInternal(Stri

我在VisualStudio工作台上打开一个表单时,感到非常兴奋 它不总是,但有时它打开没有任何问题 有人能解决这个问题吗

该路径不是合法形式。 隐藏

at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)
at System.IO.Path.NormalizePath(String path, Boolean fullCheck)
at System.IO.Path.GetFullPathInternal(String path)
at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile)
at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectDependencies(Project project)
at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.get_Assembly()
at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.Search(String fullName, String typeName, Boolean ignoreTypeCase, Assembly& assembly, String description)
at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly& assembly)
at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, ReferenceType refType)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.GetType(String name, Boolean throwOnError)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.GetType(ITypeResolutionService trs, String name, Dictionary`2 names)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.FillStatementTable(IDesignerSerializationManager manager, IDictionary table, Dictionary`2 names, CodeStatementCollection statements, String className)
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
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) 
发件人:

这是一个已知的问题,也是一个重要的问题 从VS 2003回归。如果这是 在已知问题中,会发生此错误 因为无法解析引用 在你的项目中。当设计师 加载时,它会尝试定位和加载 在您的应用程序中的每个程序集 参考清单。在C#中,可以展开 要查看此信息,请参阅参考列表。在VB中, 您必须单击“显示所有文件” 解决方案资源管理器窗口中的按钮 查看引用集合。尝试 要删除无效引用,请执行以下操作: 并重新添加任何自定义引用和 然后重新加载设计器


我还将清理您的解决方案并重建(在VS中右键单击您的解决方案并选择“清理”,再次右键单击并选择“重建”。

安装resharper。在VS中,右键单击引用并选择“优化引用”,在清理+重建后,可能不存在任何问题

正如信息所说;路径无效。消息中是否提到了路径?就我在stacktrace中所见,项目依赖项有问题。