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

时间:2010-04-01 06:39:04

标签: winforms visual-studio-2005

我在视觉工作室工作台上打开一张表格时,我已经低于这个范围了 它并不总是,但有时它打开没有任何问题 有人有解决方案吗?

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

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) 

2 个答案:

答案 0 :(得分:2)

来自connect.microsoft.com

  

这是一个已知问题,是一个   从VS 2003回归。如果是这样的话   已知问题,发生此错误   因为参考无法解决   在你的项目中。当设计师   加载,它试图定位和加载   在你的每个集会   参考文献列表。在C#中,您可以扩展   参考列表看到这个。在VB中,   你必须点击“显示所有文件”   解决方案资源管理器窗口中的按钮   查看引用集合。尝试   删除死引用,或删除   并重新添加任何自定义引用和   然后重新加载设计师。

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

答案 1 :(得分:0)

安装resharper。在VS中右键单击引用并选择“优化引用”,在clean + rebuild之后可能没有问题!