添加mediaPlay控件时出错 AxHost 失败

    xiaoxiao2022-07-13  151

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

    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,就解决了

    最新回复(0)