トップ回答者
VisualStudioが正常に動作しなくなりました

質問
-
Visual Studio 2010 Professionalが正常に動作しなくなりました
今日唐突に動かなくなり、特に何か特別な事をした記憶はありません、またアンインストール後に再インストールは試してみました
症状は、例えば Windows Froms のプロジェクトを新規作成して、テキストエディターを起動する、たとえば Program.cs をダブルクリックして開くと
暫く時間がかかった後、メッセージボックスが現れ
「Visual Studio は例外を検出しました。拡張機能が原因である可能性があります。」
詳細は /log を付けて ActivityLog.xml を見よと表示されたので、それを見てみると
Type が ERROR になって赤く表示されていたのは
#:247
Description:
Could not load document states: Microsoft.VisualStudio.Platform.WindowManagement.InvalidDocumentStatesDataException: Invalid number of documents for this document group. 場所 Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService.LoadDocumentStates(IStream stream, Int32 fExternal)
Source:
Window Configurations
#:248
Description:
System.IO.IOException: ファイルがあります。 場所 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 場所 System.IO.__Error.WinIOError() 場所 System.IO.Path.InternalGetTempFileName(Boolean checkHost) 場所 System.Windows.Input.Cursor.LoadFromStream(Stream cursorStream) 場所 System.Windows.Input.Cursor..ctor(Stream cursorStream) 場所 Microsoft.VisualStudio.Text.Editor.Implementation.LeftSelectionMargin.get_RightArrowCursor() 場所 Microsoft.VisualStudio.Text.Editor.Implementation.LeftSelectionMarginProvider.CreateMargin(IWpfTextViewHost textViewHost, IWpfTextViewMargin containerMargin) 場所 Microsoft.VisualStudio.Text.Utilities.ContainerMargin.<AddMargins>b__2(IWpfTextViewMarginProvider mp) 場所 Microsoft.VisualStudio.Text.Utilities.GuardedOperations.InstantiateExtension[TExtension,TMetadata,TExtensionInstance](Object errorSource, Lazy`2 provider, Func`2 getter)
Source:
Editor or Editor Extension
なお GUID Hr 要素は空
さらに以前インストールしていたVisualStudio2008を試しに起動してみると、こちら同様の操作でVisualStudioが落ちてしまうようです
回答
-
InternalGetTempFileNameで検索かけると出てきますが、テンポラリディレクトリをクリアすれば直るみたいですね。
http://social.msdn.microsoft.com/Forums/vstudio/en-US/56446564-95fc-4feb-92c3-f21dbbda70b9/microsoft-visual-studio-xaml-ui-designer-has-stopped-working?forum=visualstudiogeneral
http://www.jasonzurowski.com/xaml-ui-designer-has-stopped-working/
The GetTempFileName method will raise an IOException if it is used to create more than 65535 files without deleting previous temporary files.
jzkey
- 回答の候補に設定 AzuleanMVP, Moderator 2014年7月21日 21:51
- 回答としてマーク ひろくん7 2014年7月22日 6:16
すべての返信
-
InternalGetTempFileNameで検索かけると出てきますが、テンポラリディレクトリをクリアすれば直るみたいですね。
http://social.msdn.microsoft.com/Forums/vstudio/en-US/56446564-95fc-4feb-92c3-f21dbbda70b9/microsoft-visual-studio-xaml-ui-designer-has-stopped-working?forum=visualstudiogeneral
http://www.jasonzurowski.com/xaml-ui-designer-has-stopped-working/
The GetTempFileName method will raise an IOException if it is used to create more than 65535 files without deleting previous temporary files.
jzkey
- 回答の候補に設定 AzuleanMVP, Moderator 2014年7月21日 21:51
- 回答としてマーク ひろくん7 2014年7月22日 6:16