1

我有一个问题:我已将Shockwave com 对象添加到我的vb.net 项目中,它工作正常。我的开发机器是64位的Windows 7

但是,在同样是 Windows 7 并安装了冲击波的测试机器上,我收到以下错误:

************** Exception Text **************
System.InvalidOperationException: An error occurred creating the form.
See Exception.InnerException for details.
The error is: Could not load file or assembly 'AxInterop.ShockwaveFlashObjects,    Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'AxInterop.ShockwaveFlashObjects, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
The system cannot find the file specified.
   at SENpic.Video_Player.InitializeComponent()
   at SENpic.Video_Player..ctor()
   --- End of inner exception stack trace ---
   at SENpic.My.MyProject.MyForms.Create__Instance__[T](T Instance)
   at SENpic.My.MyProject.MyForms.get_Video_Player()
   at SENpic.frmStart.SensorySensitivityNationalAutisticSocietyToolStripMenuItem_Click(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.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.ToolStripDropDown.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.ToolStripDropDown.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)

据我所知,它应该可以工作,有什么想法吗?

问候格雷厄姆

4

1 回答 1

0

我已经整理好了。我没有注意到在我的构建区域中出现了两个 DDL 文件:

AxInterop.ShockwaveFlashObjects.dll
Interop.ShockwaveFlashObjects.dll

我用我的 EXE 将这些复制到文件夹中,程序现在播放这些文件。

于 2014-06-23T12:23:45.013 回答