2011-08-08 36 views
0

Windows 7(Framework 4.0)で動作するVisual Studio 2010アプリケーションにWMPコントロールを埋め込みましたが、winXPにアプリケーションをインストールすると、次のエラーが発生します。Windows Media Playerがビジュアルスタジオアプリケーションを使用してWindows XPで動作しない

System.IO.FileNotFoundException: Could not load file or assembly 'Interop.WMPLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. 
File name: 'Interop.WMPLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' 
    at Aquila_Media_Manager.modMediaPlayer.Play_File() 
    at Aquila_Media_Manager.MainForm.tsbPlay_Click(Object sender, EventArgs e) in C:\Users\Micba\Documents\Visual Studio 2010\Projects\Aquila MedMan\MainForm.vb:line 2718 
    at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e) 
    at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e) 
    at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e) 
    at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e) 
    at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met) 
    at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met) 
    at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea) 
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) 
    at System.Windows.Forms.Control.WndProc(Message& m) 
    at System.Windows.Forms.ScrollableControl.WndProc(Message& m) 
    at System.Windows.Forms.ToolStrip.WndProc(Message& m) 
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) 
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) 
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 

WRN: Assembly binding logging is turned OFF. 
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. 
Note: There is some performance penalty associated with assembly bind failure logging. 
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. 

私はこれが基準の問題だと思いますが、私はWMPライブラリ(axinterop.wmplib.dllとinterop.wmplib.dll)への参照を追加しました。 WMPはXPマシンで動作しますが、アプリケーションから呼び出されたときは動作しません。

私は現在5日間ウェブを検索し、参照を変更して、メディアプレーヤーをXPマシンに再インストールしましたが、何も動作しません。

ありがとうございました。

答えて

0

AnyCPUではなくx86にビルド構成を変更します。これにより、32ビットアプリケーションとして構築され、Interop.WMPLibは正常に動作します。問題は、少なくとも私が見つけることができる限り、64ビット版のInterop WMPLibのバージョンがないことです。

関連する問題