我是在winForm窗体程序中添加media Player控件,之后一直添加不成功,添加过程如下:
添加mediaPlay控件时出错 AxHost 失败
遇到的错误是:

Microsoft Visual Studio

创建组件“AxHost”失败。错误消息为:

“System.Reflection.ReflectionTypeLoadException: 无法加载一个或多个请求的类型。有关更多信息,请检索 LoaderExceptions 属性。

在 System.Windows.Forms.Design.DocumentDesigner.AxToolboxItem.CreateComponentsCore(IDesignerHost host)

在 System.Drawing.Design.ToolboxItem.CreateComponentsCore(IDesignerHost host, IDictionary defaultValues)

在 System.Drawing.Design.ToolboxItem.CreateComponents(IDesignerHost host, IDictionary defaultValues)

在 System.Windows.Forms.Design.OleDragDropHandler.CreateTool(ToolboxItem tool, Control parent, Int32 x, Int32 y, Int32 width, Int32 height, Boolean hasLocation, Boolean hasSize, ToolboxSnapDragDropEventArgs e)”

确定

解决方法为:打开解决方案的属性需改红色地方,不能为Any Cpu,就解决了
添加mediaPlay控件时出错 AxHost 失败

相关文章:

  • 2021-04-09
  • 2022-12-23
  • 2022-12-23
  • 2021-09-15
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
  • 2021-11-25
  • 2022-12-23
  • 2021-06-08
  • 2021-08-17
相关资源
相似解决方案