Windows Media Player オブジェクトを Windows フォームに追加しようとしていますが、次のエラーが表示されます。
Failed to create compopnent 'AxHost'. The error message follows:
'System.Reflection.ReflectionTypeLoadException: Unable to load
one or more of the requested types. Retrieve the LoaderExceptions
property for more information.
at
System.Windows.Forms.Design.DocumentDesigner.AxToolboxItem.
CreateComponentsCore(IDesignerHost host)
at
System.Drawing.Design.ToolboxItem.CreateComponentsCore(IDesignerHost
host, IDictionary defaultValues)
at
System.Drawing.Design.ToolboxItem.CreateComponents(IDesignerHost
host, IDictionary defaultValues)
at
System.Windows.Forms.Design.OleDragDropHandler.CreateTool(ToolboxItem
tool, Control parent, int32 x, int32 width, int32
height, Boolean hasLocation, Boolean hasSize,
ToolboxSnapDragDropEventArgs e)'
ただし、新しいプロジェクトを作成して Windows Media Player を追加すると、まったく問題なく動作します。
新しいプロジェクト(Windows Media Playerを使用)が開いている間にWindows Media Playerを追加したり、既存のフォームをプロジェクトに追加したりするなど、オンラインでいくつかのソリューションを試しましたが、役に立ちませんでした。
私が間違ったことをしたことはありますか?