0

私のファイルxamlnそのcsファイルは、電源がオフになったときにVisualStudio2010で開いていました。電源が戻ってプロジェクトを開いたとき、そのxamlncsファイルを開くことができません。そのプロジェクトの他のすべてのxamlncsファイルを開くことができます。ただし、これら2つのファイルのみを開くことはできません。

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ファイルを開くことができません..ビジュアルスタジオで開こうとすると、メモ帳で開きます..そしてその空白..何も入っていません

4

1 に答える 1

0

停電によってファイルが破損したように見えます。

私が知っている唯一の2つの解決策:

  1. ソース管理から最新バージョンを入手して、今日の作業をやり直してください
  2. もう一度最初からやり直します(または古いコピー)
于 2012-08-13T10:08:23.430 に答える