Class not registered exception

G

Guest

I am upgrading an application from 32 bit to 64 bit. My application contains
the Windows Media Player. Though it used to work, my code now generates a
"Class not registered (Exception from HRESULT: 0x80040154
IREGDB_E_CLASSNOTREG))" when the line:
((System.ComponentModel.ISupportInitialize)(this.axWindowsMediaPlayer1)).EndInit();
is called. I removed the control from the form and then re-added the
component to the toolbox and then drag and dropped it onto my form so that
the code was recreated. Any ideas?

Thank you,
Susan
 
G

Guest

I'm a moron. I have to compile the application as x86 because of the COM
components.

Susan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top