4
Error   1   Unknown build error, 'Cannot resolve dependency to 
assembly 'Interop.WMPLib, Version=1.0.0.0, Culture=neutral PublicKeyToken=null'        
because it has not been preloaded. When using the ReflectionOnly APIs, dependent       
assemblies must be pre-loaded or loaded on demand through the  
ReflectionOnlyAssemblyResolve event. Line 20 Position 14.' 

任意のアイデア、これ以上 dll などを含める必要がありますか

WPF

<Window ...  xmlns:activeXControl="clr-namespace:AxWMPLib;assembly=AxInterop.WMPLib">
<Grid>
     <WindowsFormsHost x:Name="winFormsHost" Grid.Column="1">
         <activeXControl:AxWindowsMediaPlayer x:Name="activeXMediaPlayer"/>
     </WindowsFormsHost>
</Grid>
</Window>

意図的に切り取られた窓タグ

4

1 に答える 1

0

WMP Media Player をインストールする必要があります。既にインストールしている場合は、再起動後にアンインストールし、新しいものをインストールしてください。

  1.COM dll is not registered properly
  2.Because of loading different version of Interop dll(i mean DLL Hell).
  3.Dll not loaded Properly because ofplateform Compatibility 
  or Others.
于 2012-07-27T12:55:40.617 に答える