Drag drop in web deployed app

D

Dante

Has anyone ever successfully gotten a web deployed exe to have Drag Drop
capabilities?
I'm currently getting the message:

An unhandled exception of type 'System.InvalidOperationException'
occurred in mscorlib.dll
Additional information: DragDrop registration failed.


Any help would be greatly appreciated.

Thanks,
Dante

P.S. I already have the [STAThread] attribute on the Main.
 
D

Dante

Nevermind... I have solved the problem.

All I needed to do was paste
"System.Threading.Thread.CurrentThread.ApartmentState =
System.Threading.ApartmentState.STA;" into the main before the
Application.Run call.
 
D

Dante

Apparently this did not completely solve the problem.
It has solved the problem on my local machine but when
I try it on a remote computer I still get the same error.

Does anyone have any ideas?


Dante said:
Nevermind... I have solved the problem.

All I needed to do was paste
"System.Threading.Thread.CurrentThread.ApartmentState =
System.Threading.ApartmentState.STA;" into the main before the
Application.Run call.



Dante said:
Has anyone ever successfully gotten a web deployed exe to have Drag Drop
capabilities?
I'm currently getting the message:

An unhandled exception of type 'System.InvalidOperationException'
occurred in mscorlib.dll
Additional information: DragDrop registration failed.


Any help would be greatly appreciated.

Thanks,
Dante

P.S. I already have the [STAThread] attribute on the Main.
 

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