Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual Studio 2012和Web Essentials 2012在尝试打开CSS文件时崩溃_Css_Visual Studio 2012 - Fatal编程技术网

Visual Studio 2012和Web Essentials 2012在尝试打开CSS文件时崩溃

Visual Studio 2012和Web Essentials 2012在尝试打开CSS文件时崩溃,css,visual-studio-2012,Css,Visual Studio 2012,我在Windows Server 2012上安装了Visual Studio 2012 RTM Plus更新和Web Essentials 2012 V1.7,打开CSS文件时出现以下崩溃 System.NullReferenceException:对象引用未设置为实例 指一个物体。在 Microsoft.Web.Editor.ComponentLocatorWithOrdering2.ImportMany()位于 Microsoft.Web.Editor.ComponentLocatorFor

我在Windows Server 2012上安装了Visual Studio 2012 RTM Plus更新和Web Essentials 2012 V1.7,打开CSS文件时出现以下崩溃

System.NullReferenceException:对象引用未设置为实例 指一个物体。在 Microsoft.Web.Editor.ComponentLocatorWithOrdering
2.ImportMany()位于
Microsoft.Web.Editor.ComponentLocatorForContentType
1.FindFirstOrderedComponent(字符串 contentTypeName)位于
Microsoft.CSS.Editor.CssEditorDocument.InitializeTextBuffer(ITextBuffer 文本缓冲区)在
Microsoft.CSS.Editor.CssEditorDocument.FromTextBuffer(ITextBuffer 文本缓冲区)在 MadsKristensen.EditorExtensions.DisplayInlineTextViewCreationListener.SubjectBuffersConnectioned(IWPTextView textView、ConnectionReason、集合'1 subjectBuffers)位于 Microsoft.VisualStudio.Text.Editor.Implementation.ConnectionManager.c_DisplayClass8.b_1() 在 Microsoft.VisualStudio.Text.Utilities.GuardeOperations.CallExtensionPoint(对象 错误源,操作调用)

我已经以另一个用户而不是本地管理员的身份登录,但仍然会发生崩溃。(我必须以具有管理员权限的普通用户身份登录,因为出于安全原因,我想某些ide不会在本地管理员的上下文中运行)

我卸载、重新安装、执行了devenv/resetuser数据,但它仍然崩溃

如果我卸载WebEssentials2012 v1.7(以及1.4、1.5等),它将停止崩溃。在V1.4之前,我相信它工作正常。可能是环境中的其他扩展发生了冲突,比如workbench工具,但是我看不到任何添加内容,我已经卸载了我能想到的所有内容

我想追踪这个错误,了解extensions的安装顺序,并尝试了解它将要做什么,这样我就有了一些可能影响它的线索

以前的条目 “开始加载包[Visual Studio CSS编辑包] {A764E895-518D-11D2-9A89-00C04F79EFC3}VisualStudio 2012/11/12 12:10:02.504 484加载UI库 C:\Program Files(x86)\Microsoft Visual Studio 11.0\Common7\Packages*\CSSPkgUI.dll{A764E895-518D-11D2-9A89-00C04F79EFC3}VisualStudio 2012/11/12 12:10:02.504 485端包加载[Visual Studio CSS编辑] 软件包]{A764E895-518D-11D2-9A89-00C04F79EFC3}VisualStudio 2012/11/12 12:10:02.505“

从我看到的情况来看,MicrosoftWebEditor试图将编辑缓冲区的内容移交给WebEssentials编辑器扩展,结果失败了

事件日志 应用程序:devenv.exe框架版本:v4.0.30319说明: 由于未处理的异常,进程已终止。例外信息: System.NullReferenceException堆栈:位于 Microsoft.Web.Editor.ComponentLocatorWithOrdering
2[[System.\uu Canon,
mscorlib,版本=4.0.0.0,区域性=中性,
PublicKeyToken=b77a5c561934e089],[System.\uu佳能,mscorlib,
版本=4.0.0.0,区域性=中性,
PublicKeyToken=b77a5c561934e089]].ImportMany()位于
Microsoft.Web.Editor.ComponentLocatorForContentType
1[[System.\u Canon, mscorlib,版本=4.0.0.0,区域性=中性, PublicKeyToken=b77a5c561934e089]]。FindFirstOrderedComponent(System.String) 在
Microsoft.CSS.Editor.CssEditorDocument.InitializeTextBuffer(Microsoft.VisualStudio.Text.ITextBuffer) 在
Microsoft.CSS.Editor.CssEditorDocument.FromTextBuffer(Microsoft.VisualStudio.Text.ITextBuffer) 在 MadsKristensen.EditorExtensions.HighlightWordTagger.EnsureInitialized() 在 MadsKristensen.EditorExtensions.HighlightWordTagger.UpdateAtCaretPosition(Microsoft.VisualStudio.Text.Editor.CaretPosition) 在 MadsKristensen.EditorExtensions.HighlightWordTagger+c_DisplayClass3.b_u2() 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, 对象,Int32)在 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate,System.Object,Int32,System.Delegate)位于 System.Windows.Threading.DispatcherOperation.InvokeImpl()位于 System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object) 在 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback,System.Object,布尔值)位于 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback,System.Object,布尔值)位于 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback,System.Object)位于 System.Windows.Threading.DispatcherOperation.Invoke()位于 位于的System.Windows.Threading.Dispatcher.ProcessQueue() System.Windows.Threading.Dispatcher.WndProcHook(IntPtr、Int32、IntPtr、, 在MS.Win32.HwndWrapper.WndProc(IntPtr, Int32,IntPtr,IntPtr,Boolean ByRef)在 位于的MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object) System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, 对象,Int32)在 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate,System.Object,Int32,System.Delegate)位于 System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan、System.Delegate、System.Object、Int32)位于 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr,Int32,IntPtr,IntPtr)

我注意到它提到了
highlightword
tagger。这是线索吗?(或者只是第一个调用点?),我在html文件中也没有颜色语法高亮显示

我在一台单独的Windows8笔记本电脑上也多次遇到同样的崩溃,有一天,当我坐在那里卸载并将其击死后,错误消失了,我尝试了很多次禁用、启用和往返,很难想象有什么可以修复它


是否有其他日志可供我追踪?

最近一晚已修复