My project is to enable the application usable under windows 7 as it is already working under Windows XP. This application has to play .swf file under windows 7. When i try to play a .swf file using the class AxShockwaveFlash, i am getting an error as
{"Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))"}.
while executing this line
AxShockwaveFlash flash = new AxShockwaveFlash();
flash.BeginInit();
flash.Location = new Point(50, 80);
flash.Name = "FlashMovie";
flash.TabIndex = 1;
this.panel1.TabIndex = 0;
this.panel1.Controls.Add(flash);
flash.Size = new Size(100, 100);
flash.Dock = DockStyle.Fill;
flash.EndInit(); //Exception occurs here
Though this error is discussed already in stackoverflow, my issue is different. i already tried : Solution 1 , Solution 2, Solution 3, Solution 4 but none of them solved my issue. This solution 5 is not a proper one because CS5 is a big software i cannot use it as a prerequisite for my application.
I have already installed Adobe Shockwave player from link'. I have tried project configuration under : Any CPU, x86 also..
For simplicity i tried a basic desktop application from source(use Form1 not Form2) which works fine when i debug and run it under dev machine with Windows XP but same application throws class not registered error when run under windows 7 dev machine.
axShockwaveFlash1 = new AxShockwaveFlashObjects.AxShockwaveFlash();
axShockwaveFlash1.Dock = DockStyle.Fill;
panel1.Controls.Add(axShockwaveFlash1); //Exception occurs here
axShockwaveFlash1.Movie = @"~/myflash.swf";
axShockwaveFlash1.Play();
Kindly provide me a solution to run .swf file under asp.net windows form application with windows 7 environment.