0

我的文件 xaml n 它的 cs 文件在断电时在 Visual Studio 2010 中打开。现在,当电源恢复时,我打开了我的项目.. 我无法打开那个 xaml n cs 文件。我可以打开该项目的所有其他 xaml n cs 文件。但不能只打开这两个文件。

在 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文件..当我尝试在Visual Studio中打开它时,它会在记事本中打开..它是空白的..里面什么都没有

4

1 回答 1

0

看起来断电损坏了文件。

我知道的仅有的两个解决方案:

  1. 从源代码管理中获取最新版本并重做今天的工作
  2. 再次从头开始(或任何旧副本)
于 2012-08-13T10:08:23.430 回答