Thursday, May 31, 2007

Fix some issues with Flash ActiveX in Visual Studio 2005

I've encountered problems in the past where the Shockwave Flash Object is included in the toolbox, but when you try to drag it to a form, you get a "ActiveX control not registered" dialog box. Visual Studio 2005 has some problems wrapping the Flash ActiveX control. The following are also generated in the Error List Window under the Warnings tag:
  1. Could not resolve dependent COM reference "stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
  2. Failed to create the wrapper assembly for type library "AxShockwaveFlashObjects". Exception of type 'Microsoft.Build.Tasks.ComReferenceResolutionException' was thrown.
  3. The referenced component 'AxShockwaveFlashObjects' could not be found. Failed to create the wrapper assembly for type library "AxShockwaveFlashObjects". Exception of type 'Microsoft.Build.Tasks.ComReferenceResolutionException' was thrown.
To fix this problem you'll need the following file: AxInterop.ShockwaveFlashObjects.dll, which can be downloaded here. Once you have a copy of the file, copy-paste to your Project's obj/Debug folder, close and restart your project then try to add the control again. That should help with the problem.



Permalink

No comments: