尝试运行时出错:测试计算机上的Shockwave COM对象

时间:2014-06-23 09:40:14

标签: vb.net axshockwaveflash

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

然而,在安装了Shockwave的测试机器上,我收到以下错误:

************** 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)

据我所知,它应该有效,有什么想法吗?

此致 格雷厄姆

1 个答案:

答案 0 :(得分:0)

我已经对它进行了分类。我没有注意到在我的构建区域出现了两个DDL文件:

AxInterop.ShockwaveFlashObjects.dll
Interop.ShockwaveFlashObjects.dll

我用EXE将它们复制到文件夹中,程序现在播放文件。