2012-08-13 53 views
0

我的文件xaml n其cs文件在电源关闭时在Visual Studio 2010中打开。现在,当权力回来,我打开我的项目..我无法打开该xaml n cs文件。我可以打开该项目的所有其他xaml n cs文件。但不能打开这两个文件。Silverlight - (Xaml)文件是否损坏?

XAML页面上我得到N错误

An unhandled exception has occured 

Details: 

System.Runtime.InteropServices.COMException 
Exception from HRESULT: 0x80041FEB 

at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) 
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode) 
at MS.Internal.Providers.DocDataFactory.CreateAndRegisterDocData(IServiceProvider services, String fileName) 
at MS.Internal.Providers.VSDesignerContext.GetDocData(String fileName) 
at MS.Internal.Providers.VSDesignerContext.Initialize(IServiceProvider provider, IVsHierarchy hierarchy, UInt32 itemid, Object docDataObj) 
at MS.Internal.Providers.VSDesignerContext..ctor(IServiceProvider provider, IVsWindowFrame frame, Object docDataObj) 
at MS.Internal.Providers.VSDesignerContext.GetContext(IServiceProvider services, IVsWindowFrame frame, Boolean createIfNotExist) 
at MS.Internal.Designer.TabbedEditorPane.MS.Internal.Designer.ITabbedEditorService.get_DesignerContext() 
at MS.Internal.Designer.DesignerPane.InitializeDesigner() 

到底是什么呢?它是损坏的还是别的?

,也是我无法打开CS文件..当我尝试它在记事本中打开..和它的空白..没有在它

回答

0

它看起来像损坏的功率损耗Visual Studio中打开它文件。

只有两个解决办法,我知道:

  1. 获取从源头控制的最新版本和重做今天
  2. 开始的再次从头开始工作(或任何旧副本)