2017-06-26 47 views
1

当我使用VS 2015年任科尔多瓦项目中打开一个CSS文件,它与崩溃:开幕CSS文件导致Visual Studio崩溃

已经遇到异常。这可能是由 扩展引起的。您可以通过检查文件 'C:\ Users \ a \ AppData \ Roaming \ Microsoft \ VisualStudio \ 14.0 \ ActivityLog.xml'来获取更多信息。

寻找有表演:

Editor or Editor Extension 

System.ArgumentException: The value passed in must be an enum base or an underlying type for an enum, such as an Int32. 
Parameter name: value 
    at System.Enum.ToObject(Type enumType, Object value) 
    at Microsoft.VisualStudio.Shell.DialogPage.SetPropertyValue(PropertyDescriptor descriptor, Object automationObject, Object value) 
    at Microsoft.VisualStudio.Shell.DialogPage.LoadSettingFromStorage(PropertyDescriptor prop) 
    at Microsoft.VisualStudio.Shell.DialogPage.LoadSettingsFromStorage() 
    at Microsoft.VisualStudio.Shell.DialogPage.set_Site(ISite value) 
    at System.ComponentModel.Container.Add(IComponent component, String name) 
    at System.ComponentModel.Container.Add(IComponent component) 
    at Microsoft.VisualStudio.Shell.Package.GetDialogPage(Type dialogPageType) 
    at Microsoft.VisualStudio.Html.Package.Package.CSS.CssPackage.GetAutomationObject(String name) 
    at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.GetAutomationObject(String propName, Object& auto) 
    at Microsoft.VisualStudio.Html.Package.Options.Common.WebSettingsStorageWithDialog.LoadFromStorage() 
    at Microsoft.Web.Editor.Host.WebEditor.GetSettings(String contentTypeName) 
    at Microsoft.CSS.Editor.Settings.CssSettings.get_Storage() 
    at Microsoft.VisualStudio.Html.Package.TaskList.CSS.CssErrorTaskProvider..ctor(ITextView textView, ITextBuffer textBuffer) 
    at Microsoft.VisualStudio.Html.Package.TaskList.CSS.CssErrorTaskProvider.Attach(ITextView textView, ITextBuffer textBuffer) 
    at Microsoft.VisualStudio.Html.Package.TaskList.CSS.ErrorTaskSetup.OnTextViewCreated(ITextView textView, ITextBuffer textBuffer) 
    at Microsoft.Web.Editor.Controller.TextViewConnectionListener.OnTextViewGotAggregateFocus(ITextView textView, ITextBuffer textBuffer) 
    at Microsoft.VisualStudio.Html.Package.Commands.CSS.VsCssTextViewConnectionListener.OnTextViewGotAggregateFocus(ITextView textView, ITextBuffer textBuffer) 
    at Microsoft.Web.Editor.Controller.TextViewConnectionListener.<>c__DisplayClass24_0.<OnTextViewConnected>b__0(Object sender, EventArgs eventArgs) 
    at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent(Object sender, EventHandler eventHandlers) 

我已经试过重新启动我的电脑,清除.VS文件夹和文件。用户。我知道安装的唯一扩展是Ankhsvn。

回答

0

我曾与加载CSS文件类似的问题。我遇到的问题是,我的Visual Studio与云中的设置同步。我有一个以前安装的扩展程序,此设置已同步到云。当我没有扩展时,VS仍然尝试同步设置并失败。

我总是有上打开CSS文件错误,我无法打开工具 - 选项 - 文本编辑器,CSS-Advanced的对话框。

对于我来说,以下帮助:

  1. 从Visual Studio签名并关闭所有实例
  2. 调用devenv的/ resetuserdata
  3. 如果需要调用devenv的/ resetsettings
  4. 不知道,后来我删除“C:\用户\ XXXXXX \应用程序数据\本地\微软\ VisualStudio的”文件夹(将重新在下次重新启动)
  5. 启动Visual Studio和设置“禁用同步工具 - 选项 - Environm耳鼻喉科帐户”的勾去掉‘同步设置’
  6. 后,你就可以重新登录到您的帐户VS,一切都应该罚款。

希望有所帮助你。