I have a .NET Windows Forms application that has the Windows Media Player
9 Active X control embedded in the form.  The application works fine when
run in stand-alone mode (normal double-click .exe mode), but generates a
threading error when I run it from a URL.

See prior thread:
http://discuss.develop.com/archives/wa.exe?A2=ind0303a&L=advanced-
dotnet&T=0&F=&S=&P=6568

The error message is: Could not instantiate ActiveX control ... bacause
the current thread is not a single-threaded apartment.

The Main() method as the [STAThread] attribute on it.  I made a simple win
forms app to test the problem, and it works just fine without the media
player control, but as soon I the control is added and the reference
to "AxWMPLib" is added, it fails, but only when deployed by URL.

Has anyone seen this one before?

Thanks in advance,

Todd

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
You may be interested in Guerrilla .NET, 24 March 2003, in London
http://www.develop.com/courses/gdotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to