大约一个月前,我用WinForms编写了一个简单的听读程序来帮助完成工作.但最近发生了一件奇怪的事情.
当我使用Visual Studio 2022重新打开此项目时,出现以下错误
The ‘DiagnosticsHubPackage’ package did not correctly.The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by examining the file 'C:\...\VisualStudio\17.0_e476ad3d\ActivityLog.xml'.
个
我查了很多资料,但我似乎没有任何 idea .有人说Windows或VS需要更新.但这显然是胡说八道,因为我以前就让它工作得很好. 而且,在错误的提示框上单击了Yes之后,我成功地输入了vs并打开了项目.
但是,当我运行该项目时,它以自动生成的代码显示
System.ArgumentException: 'Source object does not expose 'IPropertyNotifySink' event interface.'
个
代码:
this.tableLayoutPanel2.ResumeLayout(false);
this.tableLayoutPanel2.PerformLayout();
((System. ComponentModel. ISupportInitialize)(this. pictureBox1)). EndInit();
((System.ComponentModel.ISupportInitialize)(this.axWindowsMediaPlayer1)).EndInit(); //error
this. ResumeLayout(false);
有没有人有同样的经历,让我们来讨论一下如何解决这个问题.