9 Replies - 2574 Views - Last Post: 02 December 2013 - 06:30 AM Rate Topic: -----

#1 kHaanford  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 09-May 12

C# Shockwave Flash Object

Posted 09 May 2012 - 04:56 AM

Last night I put a shockwave flash player in my c# program to play YouTube videos. Everything worked brilliant! When I tried running my program this morning I have a error involving they cant load or assembly ShockwaveFlashObject. I opened up a new MicroVisStudio and made a new project and done the same thing and its working fine. The error is below and as I am new to programming just wondering if you guys can help....Thanks!!!!

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'ShockwaveFlashObjects, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'ShockwaveFlashObjects, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
at AxShockwaveFlashObjects.AxShockwaveFlash.AttachInterfaces()
at System.Windows.Forms.AxHost.GetOcxCreate()
at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
at System.Windows.Forms.AxHost.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.AxHost.EndInit()
at Prog___WFA.DocumentaryForm.InitializeComponent() in G:\Uni\Intro Programming\Mike Dacey\Assigments\Assignment 7\Museum\Prog - WFA\DocumentaryForm.Designer.cs:line 53
at Prog___WFA.DocumentaryForm..ctor() in G:\Uni\Intro Programming\Mike Dacey\Assigments\Assignment 7\Museum\Prog - WFA\DocumentaryForm.cs:line 16
at Prog___WFA.MemberForm.docButton_Click(Object sender, EventArgs e) in G:\Uni\Intro Programming\Mike Dacey\Assigments\Assignment 7\Museum\Prog - WFA\Member\MemberForm.cs:line 39
at System.Windows.Forms.Control.onclick(EventArgs e)
at System.Windows.Forms.Button.onclick(EventArgs e)
at System.Windows.Forms.Button.onmouseup(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.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].



************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.261 (RTMGDR.030319-2600)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Prog - WFA
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///G:/Uni/Intro%20Programming/Mike%20Dacey/Assigments/Assignment%207/Museum/Prog%20-%20WFA/bin/Debug/Prog%20-%20WFA.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.235 built by: RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.276 built by: RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.261 built by: RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.233 built by: RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
AxInterop.ShockwaveFlashObjects
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///G:/Uni/Intro%20Programming/Mike%20Dacey/Assigments/Assignment%207/Museum/Prog%20-%20WFA/bin/Debug/AxInterop.ShockwaveFlashObjects.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Is This A Good Question/Topic? 0
  • +

Replies To: C# Shockwave Flash Object

#2 Momerath  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 995
  • View blog
  • Posts: 2,388
  • Joined: 04-October 09

Re: C# Shockwave Flash Object

Posted 09 May 2012 - 02:41 PM

Flash pushed an update last night, that might be why it couldn't find the DLL it had used originally.
Was This Post Helpful? 0
  • +
  • -

#3 frederikmj  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 28-November 13

Re: C# Shockwave Flash Object

Posted 28 November 2013 - 04:52 AM

I have the exact same problem! I have no idea how to get past this. :(
Was This Post Helpful? 0
  • +
  • -

#4 jhouns  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 25
  • View blog
  • Posts: 100
  • Joined: 21-December 09

Re: C# Shockwave Flash Object

Posted 28 November 2013 - 06:42 AM

Your best bet would be to re-open the project in VS, remove the dependency, re-add the dependency and then re-build the solution, if the DLL doesn't match it can cause problems and the simplest way to try to fix it is to re-add the dependency as I said.

Also make sure that when running the application that any DLLs that are copied to the build output are in the same directory as the executable.
Was This Post Helpful? 0
  • +
  • -

#5 frederikmj  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 28-November 13

Re: C# Shockwave Flash Object

Posted 28 November 2013 - 06:47 AM

View Postjhouns, on 28 November 2013 - 06:42 AM, said:

Your best bet would be to re-open the project in VS, remove the dependency, re-add the dependency and then re-build the solution, if the DLL doesn't match it can cause problems and the simplest way to try to fix it is to re-add the dependency as I said.

Also make sure that when running the application that any DLLs that are copied to the build output are in the same directory as the executable.


I am new to programming. So i just have a few follow up questions. What du you mean with dependency? And what part should i rebuild? Make a new project, copy the code, and re insert the buttons, picFrames, databases and so on? That would take weeks.

Thanks for your reply.

Frederik.
Was This Post Helpful? 0
  • +
  • -

#6 Skydiver  Icon User is online

  • Code herder
  • member icon

Reputation: 3168
  • View blog
  • Posts: 9,581
  • Joined: 05-May 12

Re: C# Shockwave Flash Object

Posted 28 November 2013 - 07:14 AM

View Postfrederikmj, on 28 November 2013 - 08:47 AM, said:

What du you mean with dependency?

Remember when you added a reference to the Flash DLL? That dependency.


View Postfrederikmj, on 28 November 2013 - 08:47 AM, said:

And what part should i rebuild? Make a new project, copy the code, and re insert the buttons, picFrames, databases and so on?

Just right click on the solution and select rebuild solution.
Was This Post Helpful? 0
  • +
  • -

#7 frederikmj  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 28-November 13

Re: C# Shockwave Flash Object

Posted 29 November 2013 - 02:47 AM

I tried these things. I re-added the Shockwave Flash Object and Rebuilded the project like you wrote. But unfortunately i still have the same problem.

Do you have any other suggestions?
Was This Post Helpful? 0
  • +
  • -

#8 jhouns  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 25
  • View blog
  • Posts: 100
  • Joined: 21-December 09

Re: C# Shockwave Flash Object

Posted 29 November 2013 - 03:50 AM

It seems slightly contradictory it says:
AxInterop.ShockwaveFlashObjects
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///G:/Uni/Intro%20Programming/Mike%20Dacey/Assigments/Assignment%207/Museum/Prog%20-%20WFA/bin/Debug/AxInterop.ShockwaveFlashObjects.DLL



But earlier on says it can't find that object.
I'm presuming that you have the Shockwave DLL in the /bin/debug/ folder (where the exe is being run from) as it says it's loaded it from there, it could be an issue with one of the internal dependencies (one of the ones the component runs on). See this thread for more info:
http://stackoverflow...y-x-or-one-of-i

This post has been edited by jhouns: 29 November 2013 - 03:50 AM

Was This Post Helpful? 0
  • +
  • -

#9 frederikmj  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 28-November 13

Re: C# Shockwave Flash Object

Posted 02 December 2013 - 06:14 AM

View Postjhouns, on 29 November 2013 - 03:50 AM, said:

It seems slightly contradictory it says:
AxInterop.ShockwaveFlashObjects
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///G:/Uni/Intro%20Programming/Mike%20Dacey/Assigments/Assignment%207/Museum/Prog%20-%20WFA/bin/Debug/AxInterop.ShockwaveFlashObjects.DLL



But earlier on says it can't find that object.
I'm presuming that you have the Shockwave DLL in the /bin/debug/ folder (where the exe is being run from) as it says it's loaded it from there, it could be an issue with one of the internal dependencies (one of the ones the component runs on). See this thread for more info:
http://stackoverflow...y-x-or-one-of-i


First of, I didn't start the Thread, so some of the information from the first guys log isn't the exact same as mine.
I have been working with the program that is linked to in the other post you have linked to. I get no errors from that. Or any more help from the support site of the program.

Can i upload some kind of code for you guys to look at? Would that help me closer to a solution?

Hope you can help.

Best regards
Frederik
Was This Post Helpful? 0
  • +
  • -

#10 jhouns  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 25
  • View blog
  • Posts: 100
  • Joined: 21-December 09

Re: C# Shockwave Flash Object

Posted 02 December 2013 - 06:30 AM

Oh sorry, I had a dumb moment and mis-read it. Thought you were the same person. I'm not sure on the correct procedure here, whether to start a new thread or not, but until we're told otherwise I'll continue posting ideas here as it's the same issue. Can you paste the full error message or provide a screenshot?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1