尝试在Visual Studio 2017中查看“应用程序属性”页面时出现NotImplementedException

问题描述 投票:1回答:1

尝试打开W​​PF应用程序的属性时,在“应用程序”页面上,它会出现以下错误:

尝试加载页面时发生错误。该方法或操作未实现。

在Windows事件查看器中,我可以找到:

错误信息AppInsightsEvent Name = vs / ml / proppages / appdesigner / prop-page-designer-view-fault说明= ActivatePage TelemetrySession ='4a288b83-00d2-4f45-84cf-513352811580'Enstruted = True OptIn = True IsInitialized = True Cloned = False WatsonEventType = VisualStudioNonFatalErrors2 UTC时间= 2019-03-07T10:27:40

异常:System.NotImplementedException未实现方法或操作。 Microsoft.VisualStudio.Editors.PropertyPages.WPF.ApplicationPropPageVBWPF.StartupObjectOrUri.GetHashCode()System.Collections.Hashtable.GetHash(Object key)System.Collections.Hashtable.InitHash(Object key,Int32 hashsize,UInt32&seed,UInt32&incr)System。 Collections.Hashtable.ContainsKey(Object key)System.Windows.Forms.ComboBox.ComboBoxItemAccessibleObjectCollection.get_Item(Object key)System.Windows.Forms.ComboBox.ComboBoxUiaProvider.SetComboBoxItemSelection()System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e) System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)System.Windows.Forms.ComboBox.set_SelectedItem(Object value)Microsoft.VisualStudio.Editors.PropertyPages.WPF.ApplicationPropPageVBWPF.SetSelectedStartupObjectOrUriIntoCombobox(ComboBox combobox,StartupObjectOrUri startupObjectOrUri)Microsoft.VisualStudio。 Editors.PropertyPages.WPF.ApplicationPropPageVBWPF.SetStartupObjectOrUriIntoUI(控件控件,PropertyDescriptor prop,Object value)Microsoft。 VisualStudio.Editors.PropertyPages.PropertyControlData.InitPropertyUI()Microsoft.VisualStudio.Editors.PropertyPages.PropPageUserControlBase.InitPage()Microsoft.VisualStudio.Editors.PropertyPages.PropPageUserControlBase.SetObjects(Object [] objects)Microsoft.VisualStudio.Editors.PropertyPages.PropPageUserControlBase .IPropertyPageInternal_SetObjects(Object [] objects)Microsoft.VisualStudio.Editors.PropertyPages.PropPageBase.Create(IntPtr hWndParent)Microsoft.VisualStudio.Editors.PropertyPages.PropPageBase.IPropertyPage2_Activate(IntPtr hWndParent,RECT [] pRect,Int32 bModal)Microsoft.VisualStudio。 Editors.PropPageDesigner.PropPageDesignerView.ActivatePage(IPropertyPage PropPage)

  • 我以前安装了Visual Studio 2019 RC,但现在已经卸载了它。那个版本也给出了同样的错误。
  • 重新安装Visual Studio 2017没有帮助。
  • 这发生在旧的和新创建的项目中。
  • 我的同事在他的计算机上没有相同的项目。
  • 我上周没有任何问题。我没有安装/卸载任何特殊的东西。
wpf vb.net visual-studio visual-studio-2017 .net-4.7.2
1个回答
0
投票

我在Visual Studio 2017 15.9中遇到了这个问题。我已经安装了旧版本的Visual Studio(15.6),问题就消失了。

安装Visual Studio 2017的早期版本:https://docs.microsoft.com/en-us/visualstudio/productinfo/installing-an-earlier-release-of-vs2017

© www.soinside.com 2019 - 2024. All rights reserved.